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

Unified Diff: ui/gl/gl_surface_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_surface_glx.cc ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_wgl.cc
diff --git a/ui/gl/gl_surface_wgl.cc b/ui/gl/gl_surface_wgl.cc
index a72c825a185268e4555c8b6ec6275d4cec4e7325..7e1c3a7ad1fe9f2ec1cf127ba6eeadfb1f80b0b3 100644
--- a/ui/gl/gl_surface_wgl.cc
+++ b/ui/gl/gl_surface_wgl.cc
@@ -7,6 +7,8 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "ui/gl/gl_bindings.h"
+#include "ui/gl/gl_gl_api_implementation.h"
+#include "ui/gl/gl_wgl_api_implementation.h"
namespace gfx {
@@ -306,7 +308,7 @@ PbufferGLSurfaceWGL::~PbufferGLSurfaceWGL() {
bool PbufferGLSurfaceWGL::Initialize() {
DCHECK(!device_context_);
- if (!wglCreatePbufferARB) {
+ if (!gfx::g_driver_wgl.fn.wglCreatePbufferARBFn) {
LOG(ERROR) << "wglCreatePbufferARB not available.";
Destroy();
return false;
« no previous file with comments | « ui/gl/gl_surface_glx.cc ('k') | ui/gl/gl_wgl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698