aboutsummaryrefslogtreecommitdiffhomepage
path: root/tools
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-02-20 15:18:59 -0500
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-02-20 21:16:53 +0000
commitf3690dd416a1ff63868dd886c0c08b7698c5dd1f (patch)
treef7b2dfbc731e769a4df698c4a9ddd5cbd7d8fba7 /tools
parenta8c55fa4fec87bf6fd601b16c2684168abddbab8 (diff)
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>
Diffstat (limited to 'tools')
-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;
}