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

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

Issue 2302393002: Support swap damage rect using eglSwapBuffersWithDamageKHR (Closed)
Patch Set: Added new SwapBuffersWithDamage entry point 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
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..1c9d6d6a6af7a0a8f9aa77d17b324998c23cb619 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::PostSubBuffer(int x,
+ int y,
+ int width,
+ int height) {
+ gfx::SwapResult result =
+ NativeViewGLSurfaceEGL::PostSubBuffer(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) {
« ui/ozone/platform/cast/gl_surface_cast.h ('K') | « 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