diff options
author | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-25 12:13:08 +0000 |
---|---|---|
committer | bartfab@chromium.org <bartfab@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-10-25 12:13:08 +0000 |
commit | 25afcfe213ffd88f8e9370d4ff1ee23ecf9ae16c (patch) | |
tree | 231cbf5a41324ba641db9c7af4913bf416c897e2 /ui/gl/gl_context_wgl.cc | |
parent | 7d0cce0355811619fb78e00a1aaf0d04b103c98a (diff) | |
download | chromium_src-25afcfe213ffd88f8e9370d4ff1ee23ecf9ae16c.zip chromium_src-25afcfe213ffd88f8e9370d4ff1ee23ecf9ae16c.tar.gz chromium_src-25afcfe213ffd88f8e9370d4ff1ee23ecf9ae16c.tar.bz2 |
Revert 164047 - Make GL calls go through subclassable class.
Sheriff reverting as this CL added four static initializers.
BUG=155557
Review URL: https://chromiumcodereview.appspot.com/11266023
TBR=gman@chromium.org
Review URL: https://codereview.chromium.org/11270035
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@164051 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ui/gl/gl_context_wgl.cc')
-rw-r--r-- | ui/gl/gl_context_wgl.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc index c136641..e6b8307 100644 --- a/ui/gl/gl_context_wgl.cc +++ b/ui/gl/gl_context_wgl.cc @@ -25,9 +25,9 @@ GLContextWGL::~GLContextWGL() { std::string GLContextWGL::GetExtensions() { const char* extensions = NULL; - if (g_driver_wgl.fn.wglGetExtensionsStringARBFn) + if (wglGetExtensionsStringARB) extensions = wglGetExtensionsStringARB(GLSurfaceWGL::GetDisplayDC()); - else if (g_driver_wgl.fn.wglGetExtensionsStringEXTFn) + else if (wglGetExtensionsStringEXT) extensions = wglGetExtensionsStringEXT(); if (extensions) @@ -129,7 +129,7 @@ void* GLContextWGL::GetHandle() { void GLContextWGL::SetSwapInterval(int interval) { DCHECK(IsCurrent(NULL)); - if (gfx::g_driver_wgl.ext.b_WGL_EXT_swap_control) { + if (gfx::g_WGL_EXT_swap_control) { wglSwapIntervalEXT(interval); } else { LOG(WARNING) << |