diff options
Diffstat (limited to 'gm/dftext.cpp')
-rw-r--r-- | gm/dftext.cpp | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp index 34c1f9a94e..b420567292 100644 --- a/gm/dftext.cpp +++ b/gm/dftext.cpp @@ -39,7 +39,6 @@ protected: SkScalar scales[] = { 2.0f*5.0f, 5.0f, 2.0f, 1.0f }; // set up offscreen rendering with distance field text -#if SK_SUPPORT_GPU GrContext* ctx = inputCanvas->getGrContext(); SkISize size = onISize(); SkImageInfo info = SkImageInfo::MakeN32(size.width(), size.height(), kPremul_SkAlphaType, @@ -50,9 +49,6 @@ protected: SkCanvas* canvas = surface ? surface->getCanvas() : inputCanvas; // init our new canvas with the old canvas's matrix canvas->setMatrix(inputCanvas->getTotalMatrix()); -#else - SkCanvas* canvas = inputCanvas; -#endif // apply global scale to test glyph positioning canvas->scale(1.05f, 1.05f); canvas->clear(0xffffffff); @@ -189,7 +185,6 @@ protected: paint.setTextSize(SkIntToScalar(19)); canvas->drawString(fEmojiText, 670, 90, paint); } -#if SK_SUPPORT_GPU // render offscreen buffer if (surface) { SkAutoCanvasRestore acr(inputCanvas, true); @@ -197,7 +192,6 @@ protected: inputCanvas->resetMatrix(); inputCanvas->drawImage(surface->makeImageSnapshot().get(), 0, 0, nullptr); } -#endif } private: |