aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu/GrTest.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpu/GrTest.cpp')
-rw-r--r--tools/gpu/GrTest.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index aa2b07e232..2160c7f47e 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -93,7 +93,7 @@ void GrContextPriv::setTextBlobCacheLimit_ForTesting(size_t bytes) {
}
void GrContextPriv::setTextContextAtlasSizes_ForTesting(const GrDrawOpAtlasConfig* configs) {
- GrAtlasManager* atlasManager = this->getFullAtlasManager();
+ GrAtlasManager* atlasManager = this->getAtlasManager();
if (atlasManager) {
atlasManager->setAtlasSizes_ForTesting(configs);
}
@@ -150,10 +150,13 @@ void GrContextPriv::printGpuStats() const {
}
sk_sp<SkImage> GrContextPriv::getFontAtlasImage_ForTesting(GrMaskFormat format, unsigned int index) {
- auto restrictedAtlasManager = this->getRestrictedAtlasManager();
+ auto atlasManager = this->getAtlasManager();
+ if (!atlasManager) {
+ return nullptr;
+ }
unsigned int numProxies;
- const sk_sp<GrTextureProxy>* proxies = restrictedAtlasManager->getProxies(format, &numProxies);
+ const sk_sp<GrTextureProxy>* proxies = atlasManager->getProxies(format, &numProxies);
if (index >= numProxies || !proxies[index]) {
return nullptr;
}