diff options
author | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-13 13:33:08 +0000 |
---|---|---|
committer | bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2011-10-13 13:33:08 +0000 |
commit | e295313f019d36be5303673dd0c58c751e516fdb (patch) | |
tree | 6b897489326972a4231112894a1a7c6b23e7edcb /include/utils | |
parent | 1ba7137fc0dcace0c1be1367fe977202c63746ba (diff) |
move utils/SkEGLContext to gpu/SkGLContext, some gpu.gyp cleanup, set eol style LF on all gpu files
Review URL: http://codereview.appspot.com/5242056/
git-svn-id: http://skia.googlecode.com/svn/trunk@2474 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/utils')
-rw-r--r-- | include/utils/SkEGLContext.h | 58 |
1 files changed, 0 insertions, 58 deletions
diff --git a/include/utils/SkEGLContext.h b/include/utils/SkEGLContext.h deleted file mode 100644 index 7188ffb043..0000000000 --- a/include/utils/SkEGLContext.h +++ /dev/null @@ -1,58 +0,0 @@ - -/* - * Copyright 2011 Google Inc. - * - * Use of this source code is governed by a BSD-style license that can be - * found in the LICENSE file. - */ -#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_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 with an RGBA8 / 8bit stencil FBO. - */ -class SkEGLContext { -public: - SkEGLContext(); - ~SkEGLContext(); - - bool init(const int width, const int height); - - int getFBOID() const { return fFBO; } - -private: - GLuint fFBO; -#if defined(SK_MESA) - OSMesaContext context; - GLfloat *image; -#elif defined(SK_BUILD_FOR_MAC) - AGLContext context; -#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 |