Add caps overrides to GMs

Review URL: https://codereview.chromium.org/1158963002
diff --git a/gm/gm.h b/gm/gm.h
index 87ad927..24c6100 100644
--- a/gm/gm.h
+++ b/gm/gm.h
@@ -17,10 +17,7 @@
 #include "sk_tool_utils.h"
 
 class SkAnimTimer;
-
-#if SK_SUPPORT_GPU
-#include "GrContext.h"
-#endif
+struct GrContextOptions;
 
 #define DEF_GM(code) \
     static skiagm::GM*          SK_MACRO_APPEND_LINE(F_)(void*) { code; } \
@@ -96,6 +93,8 @@
 
         bool animate(const SkAnimTimer&);
 
+        virtual void modifyGrContextOptions(GrContextOptions* options) {}
+
     protected:
         /** draws a standard message that the GM is only intended to be used with the GPU.*/
         void drawGpuOnlyMessage(SkCanvas*);