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

Unified Diff: ui/gl/gl_bindings_autogen_wgl.h

Issue 2017623002: Create core profile contexts with WGL when --enable-unsafe-es3-apis is used. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_wgl.h ('k') | ui/gl/gl_bindings_autogen_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_bindings_autogen_wgl.h
diff --git a/ui/gl/gl_bindings_autogen_wgl.h b/ui/gl/gl_bindings_autogen_wgl.h
index 0364217150e24f0e33e8730cd838fd9ec32589df..844232b7fceae9b5f8c7527f9760b5435d80058e 100644
--- a/ui/gl/gl_bindings_autogen_wgl.h
+++ b/ui/gl/gl_bindings_autogen_wgl.h
@@ -26,6 +26,10 @@ typedef BOOL(GL_BINDING_CALL* wglCopyContextProc)(HGLRC hglrcSrc,
HGLRC hglrcDst,
UINT mask);
typedef HGLRC(GL_BINDING_CALL* wglCreateContextProc)(HDC hdc);
+typedef HGLRC(GL_BINDING_CALL* wglCreateContextAttribsARBProc)(
+ HDC hDC,
+ HGLRC hShareContext,
+ const int* attribList);
typedef HGLRC(GL_BINDING_CALL* wglCreateLayerContextProc)(HDC hdc,
int iLayerPlane);
typedef HPBUFFERARB(GL_BINDING_CALL* wglCreatePbufferARBProc)(
@@ -52,6 +56,7 @@ typedef BOOL(GL_BINDING_CALL* wglSwapIntervalEXTProc)(int interval);
typedef BOOL(GL_BINDING_CALL* wglSwapLayerBuffersProc)(HDC hdc, UINT fuPlanes);
struct ExtensionsWGL {
+ bool b_WGL_ARB_create_context;
bool b_WGL_ARB_extensions_string;
bool b_WGL_ARB_pbuffer;
bool b_WGL_ARB_pixel_format;
@@ -63,6 +68,7 @@ struct ProcsWGL {
wglChoosePixelFormatARBProc wglChoosePixelFormatARBFn;
wglCopyContextProc wglCopyContextFn;
wglCreateContextProc wglCreateContextFn;
+ wglCreateContextAttribsARBProc wglCreateContextAttribsARBFn;
wglCreateLayerContextProc wglCreateLayerContextFn;
wglCreatePbufferARBProc wglCreatePbufferARBFn;
wglDeleteContextProc wglDeleteContextFn;
@@ -93,6 +99,9 @@ class GL_EXPORT WGLApi {
UINT* num_formats) = 0;
virtual BOOL wglCopyContextFn(HGLRC hglrcSrc, HGLRC hglrcDst, UINT mask) = 0;
virtual HGLRC wglCreateContextFn(HDC hdc) = 0;
+ virtual HGLRC wglCreateContextAttribsARBFn(HDC hDC,
+ HGLRC hShareContext,
+ const int* attribList) = 0;
virtual HGLRC wglCreateLayerContextFn(HDC hdc, int iLayerPlane) = 0;
virtual HPBUFFERARB wglCreatePbufferARBFn(HDC hDC,
int iPixelFormat,
@@ -122,6 +131,8 @@ class GL_EXPORT WGLApi {
::gl::g_current_wgl_context->wglChoosePixelFormatARBFn
#define wglCopyContext ::gl::g_current_wgl_context->wglCopyContextFn
#define wglCreateContext ::gl::g_current_wgl_context->wglCreateContextFn
+#define wglCreateContextAttribsARB \
+ ::gl::g_current_wgl_context->wglCreateContextAttribsARBFn
#define wglCreateLayerContext \
::gl::g_current_wgl_context->wglCreateLayerContextFn
#define wglCreatePbufferARB ::gl::g_current_wgl_context->wglCreatePbufferARBFn
« no previous file with comments | « ui/gl/gl_bindings_api_autogen_wgl.h ('k') | ui/gl/gl_bindings_autogen_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698