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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 11266023: Make GL calls go through subclassable class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 2 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_osmesa_api_implementation.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 2fe371092c6f45591e5c0b16029e5b116f491a0b..e9a9618ed6143417e98efdbb6eab985e9ad51e3a 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -200,12 +200,13 @@ bool NativeViewGLSurfaceEGL::Initialize() {
};
// Create a surface for the native window.
- surface_ = eglCreateWindowSurface(GetDisplay(),
- GetConfig(),
- window_,
- gfx::g_EGL_NV_post_sub_buffer ?
- egl_window_attributes_sub_buffer :
- NULL);
+ surface_ = eglCreateWindowSurface(
+ GetDisplay(),
+ GetConfig(),
+ window_,
+ gfx::g_driver_egl.ext.b_EGL_NV_post_sub_buffer ?
+ egl_window_attributes_sub_buffer :
+ NULL);
if (!surface_) {
LOG(ERROR) << "eglCreateWindowSurface failed with error "
@@ -490,10 +491,10 @@ void* PbufferGLSurfaceEGL::GetShareHandle() {
NOTREACHED();
return NULL;
#else
- if (!g_EGL_ANGLE_query_surface_pointer)
+ if (!gfx::g_driver_egl.ext.b_EGL_ANGLE_query_surface_pointer)
return NULL;
- if (!g_EGL_ANGLE_surface_d3d_texture_2d_share_handle)
+ if (!gfx::g_driver_egl.ext.b_EGL_ANGLE_surface_d3d_texture_2d_share_handle)
return NULL;
void* handle;
« no previous file with comments | « ui/gl/gl_osmesa_api_implementation.cc ('k') | ui/gl/gl_surface_glx.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698