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

Unified Diff: ui/gl/gl_fence.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_egl_api_implementation.cc ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.cc
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index 183a12d5e69e75104573afa82d1b2dc61856195c..9a3523e566850f34e7cc87c1356ee9ad1863d881 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -82,9 +82,9 @@ GLFence::~GLFence() {
// static
GLFence* GLFence::Create() {
- if (gfx::g_GL_NV_fence) {
+ if (gfx::g_driver_gl.ext.b_GL_NV_fence) {
return new GLFenceNVFence();
- } else if (gfx::g_GL_ARB_sync) {
+ } else if (gfx::g_driver_gl.ext.b_GL_ARB_sync) {
return new GLFenceARBSync();
} else {
return NULL;
@@ -93,7 +93,8 @@ GLFence* GLFence::Create() {
// static
bool GLFence::IsContextLost() {
- if (!gfx::g_GL_ARB_robustness && !gfx::g_GL_EXT_robustness)
+ if (!gfx::g_driver_gl.ext.b_GL_ARB_robustness &&
+ !gfx::g_driver_gl.ext.b_GL_EXT_robustness)
return false;
if (!gfx::GLContext::GetCurrent() ||
« no previous file with comments | « ui/gl/gl_egl_api_implementation.cc ('k') | ui/gl/gl_gl_api_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698