aboutsummaryrefslogtreecommitdiffstats
path: root/include/utils/SkEGLContext.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/utils/SkEGLContext.h')
-rw-r--r--include/utils/SkEGLContext.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/include/utils/SkEGLContext.h b/include/utils/SkEGLContext.h
new file mode 100644
index 0000000..4b17be1
--- /dev/null
+++ b/include/utils/SkEGLContext.h
@@ -0,0 +1,20 @@
+#ifndef SkEGLContext_DEFINED
+#define SkEGLContext_DEFINED
+
+#include "SkTypes.h"
+
+/**
+ * Create an offscreen opengl context
+ */
+class SkEGLContext {
+public:
+ SkEGLContext();
+ ~SkEGLContext();
+
+ bool init(int width, int height);
+
+private:
+ void* fContext;
+};
+
+#endif