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

Unified Diff: ui/gfx/gl/gl_surface_egl.h

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_egl.h
diff --git a/ui/gfx/gl/gl_surface_egl.h b/ui/gfx/gl/gl_surface_egl.h
index de68fc89de782ca7cee9cf24f009581cf6af0c40..352c052873f3ca0ca68f604239836219f457b181 100644
--- a/ui/gfx/gl/gl_surface_egl.h
+++ b/ui/gfx/gl/gl_surface_egl.h
@@ -43,7 +43,7 @@ class GL_EXPORT GLSurfaceEGL : public GLSurface {
static EGLDisplay GetSoftwareDisplay();
static EGLNativeDisplayType GetNativeDisplay();
-protected:
+ protected:
bool software_;
private:
@@ -63,10 +63,13 @@ class NativeViewGLSurfaceEGL : public GLSurfaceEGL {
virtual bool SwapBuffers();
virtual gfx::Size GetSize();
virtual EGLSurface GetHandle();
+ virtual bool SupportsPostSubBuffer();
+ virtual bool PostSubBuffer(int x, int y, int width, int height);
private:
gfx::PluginWindowHandle window_;
EGLSurface surface_;
+ bool supports_post_sub_buffer_;
DISALLOW_COPY_AND_ASSIGN(NativeViewGLSurfaceEGL);
};

Powered by Google App Engine
This is Rietveld 408576698