aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools/gpu
diff options
context:
space:
mode:
Diffstat (limited to 'tools/gpu')
-rw-r--r--tools/gpu/GrTest.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index c338680b96..df5baf9b37 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -150,8 +150,9 @@ void GrContext::printGpuStats() const {
sk_sp<SkImage> GrContext::getFontAtlasImage_ForTesting(GrMaskFormat format, uint32_t index) {
GrAtlasGlyphCache* cache = this->contextPriv().getAtlasGlyphCache();
- const sk_sp<GrTextureProxy>* proxies = cache->getProxies(format);
- if (index >= cache->getAtlasPageCount(format) || !proxies[index]) {
+ unsigned int numProxies;
+ const sk_sp<GrTextureProxy>* proxies = cache->getProxies(format, &numProxies);
+ if (index >= numProxies || !proxies[index]) {
return nullptr;
}