diff options
Diffstat (limited to 'gm/gm.h')
-rw-r--r-- | gm/gm.h | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -16,6 +16,10 @@ #include "SkString.h" #include "SkTRegistry.h" +#if SK_SUPPORT_GPU +#include "GrContext.h" +#endif + #define DEF_GM(code) \ static skiagm::GM* SK_MACRO_APPEND_LINE(F_)(void*) { code; } \ static skiagm::GMRegistry SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_)); @@ -93,6 +97,10 @@ namespace skiagm { fCanvasIsDeferred = isDeferred; } +#if SK_SUPPORT_GPU + static GrContext* GetGr(/*very nearly const*/ SkCanvas*); +#endif + protected: static SkString gResourcePath; |