Change signature of GrAtlasGlyphCache::getProxies

Split out of https://skia-review.googlesource.com/c/skia/+/108001 (Fission GrAtlasGlyphCache in two)

TBR=bsalomon@google.com
Change-Id: I573730fdeddf178915eb5f5b8cf59a3ab29e0654
Reviewed-on: https://skia-review.googlesource.com/108441
Reviewed-by: Brian Salomon <bsalomon@google.com>
Reviewed-by: Jim Van Verth <jvanverth@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
diff --git a/tools/gpu/GrTest.cpp b/tools/gpu/GrTest.cpp
index c338680..df5baf9 100644
--- a/tools/gpu/GrTest.cpp
+++ b/tools/gpu/GrTest.cpp
@@ -150,8 +150,9 @@
 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;
     }