Index: tools/viewer/sk_app/RasterWindowContext.h |
diff --git a/tools/viewer/sk_app/RasterWindowContext.h b/tools/viewer/sk_app/RasterWindowContext.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..f116b8eb1518973bbe3d34e3aa5f5d9247754b29 |
--- /dev/null |
+++ b/tools/viewer/sk_app/RasterWindowContext.h |
@@ -0,0 +1,29 @@ |
+ |
+/* |
+ * Copyright 2016 Google Inc. |
+ * |
+ * Use of this source code is governed by a BSD-style license that can be |
+ * found in the LICENSE file. |
+ */ |
+#ifndef RasterWindowContext_DEFINED |
+#define RasterWindowContext_DEFINED |
+ |
+#include "WindowContext.h" |
+ |
+namespace sk_app { |
+ |
+class RasterWindowContext : public WindowContext { |
+public: |
+ // This is defined in the platform .cpp file |
+ static RasterWindowContext* Create(void* platformData, const DisplayParams& params); |
+ |
+ // Explicitly convert nullptr to GrBackendContext is needed for compiling |
+ GrBackendContext getBackendContext() override { return (GrBackendContext) nullptr; } |
+ |
+protected: |
+ bool isGpuContext() override { return false; } |
+}; |
+ |
+} // namespace sk_app |
+ |
+#endif |