diff options
author | 2015-09-09 08:16:41 -0700 | |
---|---|---|
committer | 2015-09-09 08:16:41 -0700 | |
commit | 2a24338c777462e04a2b26295f9c034155ee8f3e (patch) | |
tree | cab82add826f6d77e75c8265ea960f16929033a8 /gm/convexpolyeffect.cpp | |
parent | 157e6483fb089bf4d2e5cd2c18b521e5ab4ff32a (diff) |
GM: replace boilerplate with macros
I have verified locally that nothing draws differently.
Motivation:
* SK_SIMPLE_GM makes it easier to write a GM.
* Reducing 1100 lines of code makes maintenance easier.
* Simple GMs are easy to convert to Fiddles.
Review URL: https://codereview.chromium.org/1333553002
Diffstat (limited to 'gm/convexpolyeffect.cpp')
-rw-r--r-- | gm/convexpolyeffect.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/convexpolyeffect.cpp b/gm/convexpolyeffect.cpp index b6a05cc6be..c014e6a7f5 100644 --- a/gm/convexpolyeffect.cpp +++ b/gm/convexpolyeffect.cpp @@ -152,7 +152,7 @@ protected: using namespace GrDefaultGeoProcFactory; GrRenderTarget* rt = canvas->internal_private_accessTopLayerRenderTarget(); if (nullptr == rt) { - this->drawGpuOnlyMessage(canvas); + skiagm::GM::DrawGpuOnlyMessage(canvas); return; } GrContext* context = rt->getContext(); |