aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-27 18:00:22 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-28 00:20:06 +0000
commite5b7ceeac865fb8a3bab82a73d65752c78682718 (patch)
tree6cc0268dfc31e90677213b5d8cc67f8f33533b11 /tools
parent23243aee3ae314aeb7438f1a36a6775c3086c416 (diff)
Move atlas manager creation to GrContext derived classes
This CL relies on: https://skia-review.googlesource.com/c/skia/+/108001 (Fission GrAtlasGlyphCache in two) TBR=bsalomon@google.com Change-Id: Ic3f91cea2238221b970f8ebbda99b10202925cd8 Reviewed-on: https://skia-review.googlesource.com/110621 Commit-Queue: Robert Phillips <robertphillips@google.com> Reviewed-by: Greg Daniel <egdaniel@google.com>
Diffstat (limited to 'tools')
-rw-r--r--tools/gpu/GrTest.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index c483a22aac..241bbc2f60 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -94,7 +94,10 @@ void GrContext::setTextBlobCacheLimit_ForTesting(size_t bytes) {
}
void GrContext::setTextContextAtlasSizes_ForTesting(const GrDrawOpAtlasConfig* configs) {
- fFullAtlasManager->setAtlasSizes_ForTesting(configs);
+ GrAtlasManager* atlasManager = this->contextPriv().getFullAtlasManager();
+ if (atlasManager) {
+ atlasManager->setAtlasSizes_ForTesting(configs);
+ }
}
///////////////////////////////////////////////////////////////////////////////