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

Unified Diff: ui/gl/gl_context_wgl.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_context_glx.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_wgl.cc
diff --git a/ui/gl/gl_context_wgl.cc b/ui/gl/gl_context_wgl.cc
index e6b8307621650248ec42ee961a785abf26bc9a9b..c1366414d77de1a74f68ea0fa681990aed1b299b 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 (wglGetExtensionsStringARB)
+ if (g_driver_wgl.fn.wglGetExtensionsStringARBFn)
extensions = wglGetExtensionsStringARB(GLSurfaceWGL::GetDisplayDC());
- else if (wglGetExtensionsStringEXT)
+ else if (g_driver_wgl.fn.wglGetExtensionsStringEXTFn)
extensions = wglGetExtensionsStringEXT();
if (extensions)
@@ -129,7 +129,7 @@ void* GLContextWGL::GetHandle() {
void GLContextWGL::SetSwapInterval(int interval) {
DCHECK(IsCurrent(NULL));
- if (gfx::g_WGL_EXT_swap_control) {
+ if (gfx::g_driver_wgl.ext.b_WGL_EXT_swap_control) {
wglSwapIntervalEXT(interval);
} else {
LOG(WARNING) <<
« no previous file with comments | « ui/gl/gl_context_glx.cc ('k') | ui/gl/gl_egl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698