diff options
author | Robert Phillips <robertphillips@google.com> | 2017-11-30 08:46:03 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-11-30 14:16:32 +0000 |
commit | 8def8bffe98ee58af6c088f3ab6e4a41f32b732f (patch) | |
tree | c79c5c8d5cedbce45cbf0bc0eb39d41b500f47bc /gm/fontcache.cpp | |
parent | 1c8092ac64dc4d9fd140d7fd46fa52163fe26569 (diff) |
Add a GrContextThreadSafeProxy to SkSurfaceCharacterization
Ganesh will require access to the GrCaps to make rendering decisions.
Change-Id: I6dee42a3f0dc638f052706b8d1ea6e02b589e062
Reviewed-on: https://skia-review.googlesource.com/77681
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'gm/fontcache.cpp')
-rw-r--r-- | gm/fontcache.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/gm/fontcache.cpp b/gm/fontcache.cpp index b93cc3f031..ce919e9df5 100644 --- a/gm/fontcache.cpp +++ b/gm/fontcache.cpp @@ -51,6 +51,7 @@ protected: void onDraw(SkCanvas* canvas) override { canvas->clear(SK_ColorLTGRAY); this->drawText(canvas); +#if SK_SUPPORT_GPU // Debugging tool for GPU. static const bool kShowAtlas = false; if (kShowAtlas) { @@ -59,6 +60,7 @@ protected: canvas->drawImage(img, 0, 0); } } +#endif } private: |