diff options
Diffstat (limited to 'gm/fontcache.cpp')
-rw-r--r-- | gm/fontcache.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp index f7a1313fb9..6c99700d93 100644 --- a/gm/fontcache.cpp +++ b/gm/fontcache.cpp @@ -13,6 +13,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" +#include "GrContextPriv.h" #include "GrContextOptions.h" #include "SkCanvas.h" #include "SkGraphics.h" @@ -74,7 +75,7 @@ protected: static const bool kShowAtlas = false; if (kShowAtlas) { if (auto ctx = canvas->getGrContext()) { - auto img = ctx->getFontAtlasImage_ForTesting(kA8_GrMaskFormat); + auto img = ctx->contextPriv().getFontAtlasImage_ForTesting(kA8_GrMaskFormat); canvas->drawImage(img, 0, 0); } } |