Index: src/gpu/GrGpuFactory.h |
diff --git a/src/gpu/GrGpuFactory.h b/src/gpu/GrGpuFactory.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..180f264d96413fda8a4fa99d44ed1d3314e6759e |
--- /dev/null |
+++ b/src/gpu/GrGpuFactory.h |
@@ -0,0 +1,23 @@ |
+/* |
+ * 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 GrGpuFactory_DEFINED |
+#define GrGpuFactory_DEFINED |
+ |
+#include "GrTypes.h" |
+ |
+class GrGpu; |
+class GrContext; |
+ |
+typedef GrGpu* (*CreateGpuProc)(GrBackendContext, GrContext*); |
+ |
+class GrGpuFactoryRegistrar { |
+public: |
+ GrGpuFactoryRegistrar(int i, CreateGpuProc proc); |
+}; |
+ |
+#endif |