diff options
author | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-25 11:21:15 +0000 |
---|---|---|
committer | gman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-25 11:21:15 +0000 |
commit | b9e5528626e8e942c994cfce5ce7f94a894b5151 (patch) | |
tree | d0cdf1e69e9f548b4ccd6165d191f1d295eb6039 /ui/gl/gl_surface_glx.cc | |
parent | 3390faaa8412d9f1382c2d06f9e332a674cf908c (diff) | |
download | chromium_src-b9e5528626e8e942c994cfce5ce7f94a894b5151.zip chromium_src-b9e5528626e8e942c994cfce5ce7f94a894b5151.tar.gz chromium_src-b9e5528626e8e942c994cfce5ce7f94a894b5151.tar.bz2 |
Make GL calls go through subclassable class.
This is a step to virtualizing GL
BUG=155557
Review URL: https://chromiumcodereview.appspot.com/11266023
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164047 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_surface_glx.cc')
-rw-r--r-- | ui/gl/gl_surface_glx.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gl/gl_surface_glx.cc b/ui/gl/gl_surface_glx.cc index 6e16754..f810114 100644 --- a/ui/gl/gl_surface_glx.cc +++ b/ui/gl/gl_surface_glx.cc @@ -122,7 +122,7 @@ bool NativeViewGLSurfaceGLX::Resize(const gfx::Size& size) { // On Intel drivers, the frame buffer won't be resize until the next swap. If // we only do PostSubBuffer, then we're stuck in the old size. Force a swap // now. - if (gfx::g_GLX_MESA_copy_sub_buffer && size_ != size) + if (gfx::g_driver_glx.ext.b_GLX_MESA_copy_sub_buffer && size_ != size) SwapBuffers(); size_ = size; return true; @@ -149,7 +149,7 @@ void* NativeViewGLSurfaceGLX::GetHandle() { std::string NativeViewGLSurfaceGLX::GetExtensions() { std::string extensions = GLSurface::GetExtensions(); - if (g_GLX_MESA_copy_sub_buffer) { + if (gfx::g_driver_glx.ext.b_GLX_MESA_copy_sub_buffer) { extensions += extensions.empty() ? "" : " "; extensions += "GL_CHROMIUM_post_sub_buffer"; } @@ -219,7 +219,7 @@ void* NativeViewGLSurfaceGLX::GetConfig() { bool NativeViewGLSurfaceGLX::PostSubBuffer( int x, int y, int width, int height) { - DCHECK(g_GLX_MESA_copy_sub_buffer); + DCHECK(gfx::g_driver_glx.ext.b_GLX_MESA_copy_sub_buffer); glXCopySubBufferMESA(g_display, window_, x, y, width, height); return true; } |