Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1)

Side by Side Diff: include/gpu/gl/SkNativeGLContext.h

Issue 351583002: Revert of Support using OpenGL ES context on desktop (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « include/gpu/gl/SkMesaGLContext.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 1
2 /* 2 /*
3 * Copyright 2011 Google Inc. 3 * Copyright 2011 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 #ifndef SkNativeGLContext_DEFINED 8 #ifndef SkNativeGLContext_DEFINED
9 #define SkNativeGLContext_DEFINED 9 #define SkNativeGLContext_DEFINED
10 10
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 #elif defined(SK_BUILD_FOR_WIN32) 51 #elif defined(SK_BUILD_FOR_WIN32)
52 HDC fOldHDC; 52 HDC fOldHDC;
53 HGLRC fOldHGLRC; 53 HGLRC fOldHGLRC;
54 54
55 #elif defined(SK_BUILD_FOR_IOS) 55 #elif defined(SK_BUILD_FOR_IOS)
56 void* fEAGLContext; 56 void* fEAGLContext;
57 #endif 57 #endif
58 }; 58 };
59 59
60 protected: 60 protected:
61 virtual const GrGLInterface* createGLContext(GrGLStandard forcedGpuAPI) SK_O VERRIDE; 61 virtual const GrGLInterface* createGLContext() SK_OVERRIDE;
62 virtual void destroyGLContext() SK_OVERRIDE; 62 virtual void destroyGLContext() SK_OVERRIDE;
63 63
64 private: 64 private:
65 #if defined(SK_BUILD_FOR_MAC) 65 #if defined(SK_BUILD_FOR_MAC)
66 CGLContextObj fContext; 66 CGLContextObj fContext;
67 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL) 67 #elif defined(SK_BUILD_FOR_ANDROID) || defined(SK_BUILD_FOR_NACL)
68 EGLContext fContext; 68 EGLContext fContext;
69 EGLDisplay fDisplay; 69 EGLDisplay fDisplay;
70 EGLSurface fSurface; 70 EGLSurface fSurface;
71 #elif defined(SK_BUILD_FOR_UNIX) 71 #elif defined(SK_BUILD_FOR_UNIX)
72 GLXContext fContext; 72 GLXContext fContext;
73 Display* fDisplay; 73 Display* fDisplay;
74 Pixmap fPixmap; 74 Pixmap fPixmap;
75 GLXPixmap fGlxPixmap; 75 GLXPixmap fGlxPixmap;
76 #elif defined(SK_BUILD_FOR_WIN32) 76 #elif defined(SK_BUILD_FOR_WIN32)
77 HWND fWindow; 77 HWND fWindow;
78 HDC fDeviceContext; 78 HDC fDeviceContext;
79 HGLRC fGlRenderContext; 79 HGLRC fGlRenderContext;
80 static ATOM gWC; 80 static ATOM gWC;
81 #elif defined(SK_BUILD_FOR_IOS) 81 #elif defined(SK_BUILD_FOR_IOS)
82 void* fEAGLContext; 82 void* fEAGLContext;
83 #endif 83 #endif
84 }; 84 };
85 85
86 #endif 86 #endif
OLDNEW
« no previous file with comments | « include/gpu/gl/SkMesaGLContext.h ('k') | include/gpu/gl/SkNullGLContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698