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

Unified Diff: ui/gl/gl_surface.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/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_surface.cc
diff --git a/ui/gl/gl_surface.cc b/ui/gl/gl_surface.cc
index c3696f7896126388ede40c3077b226345ab5c875..a457ea32a579a1fee52786d2010bc49be72800fe 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;
}
@@ -225,6 +236,13 @@ void GLSurfaceAdapter::SwapBuffersAsync(
surface_->SwapBuffersAsync(callback);
}
+gfx::SwapResult GLSurfaceAdapter::SwapBuffersWithDamage(int x,
+ int y,
+ int width,
+ int height) {
+ return surface_->SwapBuffersWithDamage(x, y, width, height);
+}
+
gfx::SwapResult GLSurfaceAdapter::PostSubBuffer(int x,
int y,
int width,
@@ -250,6 +268,10 @@ void GLSurfaceAdapter::CommitOverlayPlanesAsync(
surface_->CommitOverlayPlanesAsync(callback);
}
+bool GLSurfaceAdapter::SupportsSwapBuffersWithDamage() {
+ return surface_->SupportsSwapBuffersWithDamage();
+}
+
bool GLSurfaceAdapter::SupportsPostSubBuffer() {
return surface_->SupportsPostSubBuffer();
}
« no previous file with comments | « ui/gl/gl_surface.h ('k') | ui/gl/gl_surface_egl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698