aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/fontcache.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'gm/fontcache.cpp')
-rw-r--r--gm/fontcache.cpp2
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: