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
diff --git a/gm/rrects.cpp b/gm/rrects.cpp
index c4736c7..279f4a6 100644
--- a/gm/rrects.cpp
+++ b/gm/rrects.cpp
@@ -63,7 +63,7 @@
context = rt ? rt->getContext() : nullptr;
#endif
if (kEffect_Type == fType && nullptr == context) {
- this->drawGpuOnlyMessage(canvas);
+ skiagm::GM::DrawGpuOnlyMessage(canvas);
return;
}