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

Unified Diff: ui/gl/gl_surface.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/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index c3696f7896126388ede40c3077b226345ab5c875..0ec74f35cffd3266830fa21140fab3c2f272f4c3 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -51,6 +51,10 @@ bool GLSurface::DeferDraws() {
return false;
}
+bool GLSurface::SupportsSwapBuffersWithDamage() {
+ return false;
+}
+
bool GLSurface::SupportsPostSubBuffer() {
return false;
}
@@ -71,6 +75,13 @@ void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) {
NOTREACHED();
}
+gfx::SwapResult GLSurface::SwapBuffersWithDamage(int x,
+ int y,
+ int width,
+ int height) {
+ return gfx::SwapResult::SWAP_FAILED;
+}
+
gfx::SwapResult GLSurface::PostSubBuffer(int x, int y, int width, int height) {
return gfx::SwapResult::SWAP_FAILED;
}

Powered by Google App Engine
This is Rietveld 408576698