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

Unified Diff: ui/ozone/platform/cast/gl_surface_cast.cc

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/ozone/platform/cast/gl_surface_cast.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/ozone/platform/cast/gl_surface_cast.cc
diff --git a/ui/ozone/platform/cast/gl_surface_cast.cc b/ui/ozone/platform/cast/gl_surface_cast.cc
index 6dc6099cd7d903a45df4e5fdc93e043442557169..05b337735b2cbfb15b99be6de4c3dd36fd59ae2a 100644
--- a/ui/ozone/platform/cast/gl_surface_cast.cc
+++ b/ui/ozone/platform/cast/gl_surface_cast.cc
@@ -25,6 +25,18 @@ gfx::SwapResult GLSurfaceCast::SwapBuffers() {
return result;
}
+gfx::SwapResult GLSurfaceCast::SwapBuffersWithDamage(int x,
+ int y,
+ int width,
+ int height) {
+ gfx::SwapResult result =
+ NativeViewGLSurfaceEGL::SwapBuffersWithDamage(x, y, width, height);
+ if (result == gfx::SwapResult::SWAP_ACK)
+ parent_->OnSwapBuffers();
+
+ return result;
+}
+
bool GLSurfaceCast::Resize(const gfx::Size& size,
float scale_factor,
bool has_alpha) {
« no previous file with comments | « ui/ozone/platform/cast/gl_surface_cast.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698