Index: tools/VisualBench/VisualModule.h |
diff --git a/tools/VisualBench/VisualModule.h b/tools/VisualBench/VisualModule.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..ec4463d0a3a51922f00be5e58c23194a41461d01 |
--- /dev/null |
+++ b/tools/VisualBench/VisualModule.h |
@@ -0,0 +1,32 @@ |
+/* |
+ * Copyright 2015 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ * |
+ */ |
+ |
+#ifndef VisualModule_DEFINED |
+#define VisualModule_DEFINED |
+ |
+#include "SkRefCnt.h" |
+ |
+class SkCanvas; |
+ |
+/* |
+ * VisualModule is the base class for all of the various types of activities VisualBench supports. |
+ * |
+ * The common theme tying these all together is they need to display an image to the screen. Later, |
+ * on we some modules will also be interactive |
+ */ |
+class VisualModule : public SkRefCnt { |
+public: |
+ virtual ~VisualModule() {} |
+ |
+ virtual void draw(SkCanvas* canvas)=0; |
+ |
+private: |
+ typedef SkRefCnt INHERITED; |
+}; |
+ |
+#endif |