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

Unified Diff: ui/gl/gl_surface_egl.h

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Update GLSurfaceAdapter Created 4 years, 3 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.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface_egl.h
diff --git a/ui/gl/gl_surface_egl.h b/ui/gl/gl_surface_egl.h
index 7ad5c32684a2bb1314797019edec02f53648de95..eb63e8353e3c1e06a8e5a77919ab227a98c57346 100644
--- a/ui/gl/gl_surface_egl.h
+++ b/ui/gl/gl_surface_egl.h
@@ -96,7 +96,12 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
gfx::SwapResult SwapBuffers() override;
gfx::Size GetSize() override;
EGLSurface GetHandle() override;
+ bool SupportsSwapBuffersWithDamage() override;
bool SupportsPostSubBuffer() override;
+ gfx::SwapResult SwapBuffersWithDamage(int x,
+ int y,
+ int width,
+ int height) override;
gfx::SwapResult PostSubBuffer(int x, int y, int width, int height) override;
bool SupportsCommitOverlayPlanes() override;
gfx::SwapResult CommitOverlayPlanes() override;
@@ -133,6 +138,7 @@ class GL_EXPORT NativeViewGLSurfaceEGL : public GLSurfaceEGL {
EGLSurface surface_;
bool supports_post_sub_buffer_;
+ bool supports_swap_buffer_with_damage_;
bool flips_vertically_;
std::unique_ptr<gfx::VSyncProvider> vsync_provider_;
« no previous file with comments | « ui/gl/gl_surface.cc ('k') | ui/gl/gl_surface_egl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698