diff options
Diffstat (limited to 'samplecode/SampleAnimatedText.cpp')
-rw-r--r-- | samplecode/SampleAnimatedText.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/samplecode/SampleAnimatedText.cpp b/samplecode/SampleAnimatedText.cpp index f93cecaf8f..71f3b87d47 100644 --- a/samplecode/SampleAnimatedText.cpp +++ b/samplecode/SampleAnimatedText.cpp @@ -19,6 +19,7 @@ #if SK_SUPPORT_GPU #include "GrContext.h" +#include "GrContextPriv.h" #endif SkRandom gRand; @@ -103,8 +104,8 @@ protected: #if SK_SUPPORT_GPU GrContext* grContext = canvas->getGrContext(); if (grContext) { - sk_sp<SkImage> image = - grContext->getFontAtlasImage_ForTesting(GrMaskFormat::kA8_GrMaskFormat); + sk_sp<SkImage> image = grContext->contextPriv().getFontAtlasImage_ForTesting( + GrMaskFormat::kA8_GrMaskFormat); canvas->drawImageRect(image, SkRect::MakeXYWH(512.0f, 10.0f, 512.0f, 512.0f), &paint); } |