diff options
author | Brian Osman <brianosman@google.com> | 2018-05-31 14:27:17 -0400 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-05-31 18:59:44 +0000 |
commit | c7ad40f76f6f23b3acd73b53e989220fd71f2da2 (patch) | |
tree | 3a2372730179f1bd0dd2486b6e576ec308f1327b /gm/dftext.cpp | |
parent | 8103bb960933359f6536cbfd40d760e54b079e94 (diff) | |
download | platform_external_skqp-c7ad40f76f6f23b3acd73b53e989220fd71f2da2.tar.gz platform_external_skqp-c7ad40f76f6f23b3acd73b53e989220fd71f2da2.tar.bz2 platform_external_skqp-c7ad40f76f6f23b3acd73b53e989220fd71f2da2.zip |
Remove SK_SUPPORT_GPU checks in tool-only code
Most of this is (obviously) not necessary to do, but once
I started, I figured I'd just get it all. Tools (nanobench,
DM, skiaserve), all GMs, benches, and unit tests, plus support
code (command line parsing and config stuff).
This is almost entirely mechanical.
Bug: skia:
Change-Id: I209500f8df8c5bd43f8298ff26440d1c4d7425fb
Reviewed-on: https://skia-review.googlesource.com/131153
Reviewed-by: Mike Klein <mtklein@google.com>
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Brian Osman <brianosman@google.com>
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: |