diff options
author | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-28 16:19:11 +0000 |
---|---|---|
committer | robertphillips@google.com <robertphillips@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2012-03-28 16:19:11 +0000 |
commit | d3b9fbbc48c13a1b2a664cf7e01374a44c201f51 (patch) | |
tree | f4f1ade2e1ce0953eeb0551c96603e51bfdd08e2 /include/views | |
parent | 42aea289cbf801997b653a906a37a7f7e948b645 (diff) |
Code changes for ANGLE GL interface. .gyp file changes will be delivered later.
http://codereview.appspot.com/5940046/
git-svn-id: http://skia.googlecode.com/svn/trunk@3519 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include/views')
-rw-r--r-- | include/views/SkOSWindow_Win.h | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/include/views/SkOSWindow_Win.h b/include/views/SkOSWindow_Win.h index bd6b4bd84f..c17807a2d9 100644 --- a/include/views/SkOSWindow_Win.h +++ b/include/views/SkOSWindow_Win.h @@ -12,6 +12,10 @@ #include "SkWindow.h" +#if SK_ANGLE +#include "EGL/egl.h" +#endif + class SkOSWindow : public SkWindow { public: SkOSWindow(void* hwnd); @@ -27,6 +31,12 @@ public: void detachGL(); void presentGL(); +#if SK_ANGLE + bool attachANGLE(); + void detachANGLE(); + void presentANGLE(); +#endif + bool attachD3D9(); void detachD3D9(); void presentD3D9(); @@ -57,6 +67,11 @@ private: void doPaint(void* ctx); void* fHGLRC; +#if SK_ANGLE + angle::EGLDisplay fDisplay; + angle::EGLContext fContext; + angle::EGLSurface fSurface; +#endif bool fGLAttached; @@ -69,4 +84,3 @@ private: }; #endif - |