diff options
author | 2018-02-20 15:18:59 -0500 | |
---|---|---|
committer | 2018-02-20 21:16:53 +0000 | |
commit | f3690dd416a1ff63868dd886c0c08b7698c5dd1f (patch) | |
tree | f7b2dfbc731e769a4df698c4a9ddd5cbd7d8fba7 /tools/gpu/GrTest.cpp | |
parent | a8c55fa4fec87bf6fd601b16c2684168abddbab8 (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/gpu/GrTest.cpp')
-rw-r--r-- | tools/gpu/GrTest.cpp | 5 |
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; } |