Index: samplecode/SampleCode.h |
diff --git a/samplecode/SampleCode.h b/samplecode/SampleCode.h |
index 26a8207ddcb6d29c9c9ba96550f7af806dcc130b..93127ebb644d40a4d54afe8c4f83d24499c200e6 100644 |
--- a/samplecode/SampleCode.h |
+++ b/samplecode/SampleCode.h |
@@ -17,6 +17,11 @@ |
#include "SkOSMenu.h" |
class GrContext; |
+#define DEF_SAMPLE(code) \ |
+ static SkView* SK_MACRO_APPEND_LINE(F_)() { code } \ |
+ static SkViewRegister SK_MACRO_APPEND_LINE(R_)(SK_MACRO_APPEND_LINE(F_)); |
+ |
+ |
class SampleCode { |
public: |
static bool KeyQ(const SkEvent&, SkKey* outKey); |