aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-03-01 14:16:41 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-03-01 19:41:04 +0000
commit1056eb821f1f43b034962aa6defb80aeeb75d22d (patch)
tree0e05142557cce356f743a538f8d19c49e6aacc17 /tools/gpu
parent4f16db62e5a794080228bd096f29dd9df8311f6c (diff)
Move atlas manager creation to GrContext derived classes (take 2)
TBR=bsalomon@google.com Change-Id: Ie10b7e770e24104d10c36ce7882126dd8551a8ba Reviewed-on: https://skia-review.googlesource.com/110822 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'tools/gpu')
-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);
+ }
}
///////////////////////////////////////////////////////////////////////////////