aboutsummaryrefslogtreecommitdiffstats
path: root/include/utils/SkEGLContext.h
diff options
context:
space:
mode:
authorDerek Sollenberger <djsollen@google.com>2012-02-06 13:31:51 -0800
committerAndroid Git Automerger <android-git-automerger@android.com>2012-02-06 13:31:51 -0800
commit0a6004fdb6c99bccb8bc0bb9686616870dae73f3 (patch)
tree2852f9dc2481f639122e18fc7831ae6ca43d6d5a /include/utils/SkEGLContext.h
parente2d01455540d4414ebfc6acb06f06d357849335c (diff)
parent1cab2921ab279367f8206cdadc9259d12e603548 (diff)
downloadexternal_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.zip
external_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.tar.gz
external_skia-0a6004fdb6c99bccb8bc0bb9686616870dae73f3.tar.bz2
am 1cab2921: Skia merge (revision 3022)
* commit '1cab2921ab279367f8206cdadc9259d12e603548': Skia merge (revision 3022)
Diffstat (limited to 'include/utils/SkEGLContext.h')
-rw-r--r--include/utils/SkEGLContext.h53
1 files changed, 0 insertions, 53 deletions
diff --git a/include/utils/SkEGLContext.h b/include/utils/SkEGLContext.h
deleted file mode 100644
index ced31a5..0000000
--- a/include/utils/SkEGLContext.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#ifndef SkEGLContext_DEFINED
-#define SkEGLContext_DEFINED
-
-#if defined(SK_MESA)
- #include "GL/osmesa.h"
-#elif defined(SK_BUILD_FOR_MAC)
- #include <AGL/agl.h>
-#elif defined(SK_BUILD_FOR_ANDROID)
- #include "GLES2/gl2.h"
- #include "EGL/egl.h"
-#elif defined(SK_BUILD_FOR_UNIX)
- #include <X11/Xlib.h>
- #include <GL/glx.h>
-#elif defined(SK_BUILD_FOR_WIN32)
- #include <Windows.h>
- #include <GL/GL.h>
-#else
-
-#endif
-
-/**
- * Create an offscreen opengl context
- */
-class SkEGLContext {
-public:
- SkEGLContext();
- ~SkEGLContext();
-
- bool init(const int width, const int height);
-
-private:
-#if defined(SK_MESA)
- OSMesaContext context;
- GLfloat *image;
-#elif defined(SK_BUILD_FOR_MAC)
- AGLContext context;
-#elif defined(SK_BUILD_FOR_ANDROID)
-
-#elif defined(SK_BUILD_FOR_UNIX)
- GLXContext context;
- Display *display;
- Pixmap pixmap;
- GLXPixmap glxPixmap;
-#elif defined(SK_BUILD_FOR_WIN32)
- HWND fWindow;
- HDC fDeviceContext;
- HGLRC fGlRenderContext;
-#else
-
-#endif
-};
-
-#endif