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

Unified Diff: ui/gl/gl_context_glx.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_bindings.h ('k') | ui/gl/gl_context_wgl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_context_glx.cc
diff --git a/ui/gl/gl_context_glx.cc b/ui/gl/gl_context_glx.cc
index dc8226b4b50eb224baba5eb5603a150f18eb79a1..3ab750b9ed923f430522147f1d408c978872f15c 100644
--- a/ui/gl/gl_context_glx.cc
+++ b/ui/gl/gl_context_glx.cc
@@ -219,12 +219,14 @@ void* GLContextGLX::GetHandle() {
void GLContextGLX::SetSwapInterval(int interval) {
DCHECK(IsCurrent(NULL));
- if (HasExtension("GLX_EXT_swap_control") && glXSwapIntervalEXT) {
+ if (HasExtension("GLX_EXT_swap_control") &&
+ g_driver_glx.fn.glXSwapIntervalEXTFn) {
glXSwapIntervalEXT(
display_,
glXGetCurrentDrawable(),
interval);
- } else if (HasExtension("GLX_MESA_swap_control") && glXSwapIntervalMESA) {
+ } else if (HasExtension("GLX_MESA_swap_control") &&
+ g_driver_glx.fn.glXSwapIntervalMESAFn) {
glXSwapIntervalMESA(interval);
} else {
if(interval == 0)
« no previous file with comments | « ui/gl/gl_bindings.h ('k') | ui/gl/gl_context_wgl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698