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

Unified Diff: ui/gfx/gl/gl_surface_glx.cc

Issue 8512005: Plumb through EGL_NV_post_sub_buffer and GLX_MESA_copy_sub_buffer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: "" Created 9 years, 1 month 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
Index: ui/gfx/gl/gl_surface_glx.cc
diff --git a/ui/gfx/gl/gl_surface_glx.cc b/ui/gfx/gl/gl_surface_glx.cc
index 2f2380f8c7b48a33e53dc77408018577d4f72da0..373bc857d48d02593c7663405aa97ddbebb222dc 100644
--- a/ui/gfx/gl/gl_surface_glx.cc
+++ b/ui/gfx/gl/gl_surface_glx.cc
@@ -203,6 +203,17 @@ void* NativeViewGLSurfaceGLX::GetConfig() {
return config_;
}
+bool NativeViewGLSurfaceGLX::SupportsPostSubBuffer() {
+ return g_GLX_MESA_copy_sub_buffer;
+}
+
+bool NativeViewGLSurfaceGLX::PostSubBuffer(
+ int x, int y, int width, int height) {
+ DCHECK(SupportsPostSubBuffer());
+ glXCopySubBufferMESA(g_display, window_, x, y, width, height);
+ return true;
+}
+
PbufferGLSurfaceGLX::PbufferGLSurfaceGLX(const gfx::Size& size)
: size_(size),
config_(NULL),

Powered by Google App Engine
This is Rietveld 408576698