GM: replace boilerplate with macros
authorhalcanary <halcanary@google.com>
Wed, 9 Sep 2015 15:16:41 +0000 (08:16 -0700)
committerCommit bot <commit-bot@chromium.org>
Wed, 9 Sep 2015 15:16:41 +0000 (08:16 -0700)
commit2a24338c777462e04a2b26295f9c034155ee8f3e
treecab82add826f6d77e75c8265ea960f16929033a8
parent157e6483fb089bf4d2e5cd2c18b521e5ab4ff32a
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
46 files changed:
gm/astcbitmap.cpp
gm/beziereffects.cpp
gm/bigmatrix.cpp
gm/bigrrectaaeffect.cpp
gm/bitmaprecttest.cpp
gm/blurrect.cpp
gm/blurs.cpp
gm/clipdrawdraw.cpp
gm/colorfilterimagefilter.cpp
gm/constcolorprocessor.cpp
gm/convexpolyeffect.cpp
gm/dashcubics.cpp
gm/dcshader.cpp
gm/fatpathfill.cpp
gm/getpostextpath.cpp
gm/glyph_pos.cpp
gm/glyph_pos_align.cpp
gm/gm.cpp
gm/gm.h
gm/gradient_matrix.cpp
gm/hittestpath.cpp
gm/imageblur.cpp
gm/imagefilters.cpp
gm/imagefromyuvtextures.cpp
gm/imagemagnifier.cpp
gm/imageresizetiled.cpp
gm/inversepaths.cpp
gm/largeglyphblur.cpp
gm/lerpmode.cpp
gm/linepaths.cpp
gm/matriximagefilter.cpp
gm/mipmap.cpp
gm/patch.cpp
gm/pathreverse.cpp
gm/rrects.cpp
gm/shadertext2.cpp
gm/skbug1719.cpp
gm/smallarc.cpp
gm/strokefill.cpp
gm/stroketext.cpp
gm/texdata.cpp
gm/textblobrandomfont.cpp
gm/textblobuseaftergpufree.cpp
gm/texteffects.cpp
gm/texturedomaineffect.cpp
gm/yuvtorgbeffect.cpp