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

Unified Diff: ui/gl/gl_surface.cc

Issue 2673473002: Rename SwapBuffersWithDamage to SwapBuffersWithBounds (Closed)
Patch Set: fix windows compile warning Created 3 years, 10 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 70f2207150e1915546efe462b716a17e5eae0697..7b29a7d1576d38f4fb000198f95207a22e672eb4 100644
--- a/ui/gl/gl_surface.cc
+++ b/ui/gl/gl_surface.cc
@@ -52,7 +52,7 @@ bool GLSurface::DeferDraws() {
return false;
}
-bool GLSurface::SupportsSwapBuffersWithDamage() {
+bool GLSurface::SupportsSwapBuffersWithBounds() {
return false;
}
@@ -76,10 +76,8 @@ void GLSurface::SwapBuffersAsync(const SwapCompletionCallback& callback) {
NOTREACHED();
}
-gfx::SwapResult GLSurface::SwapBuffersWithDamage(int x,
- int y,
- int width,
- int height) {
+gfx::SwapResult GLSurface::SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects) {
return gfx::SwapResult::SWAP_FAILED;
}
@@ -241,11 +239,9 @@ 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::SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects) {
+ return surface_->SwapBuffersWithBounds(rects);
}
gfx::SwapResult GLSurfaceAdapter::PostSubBuffer(int x,
@@ -273,8 +269,8 @@ void GLSurfaceAdapter::CommitOverlayPlanesAsync(
surface_->CommitOverlayPlanesAsync(callback);
}
-bool GLSurfaceAdapter::SupportsSwapBuffersWithDamage() {
- return surface_->SupportsSwapBuffersWithDamage();
+bool GLSurfaceAdapter::SupportsSwapBuffersWithBounds() {
+ return surface_->SupportsSwapBuffersWithBounds();
}
bool GLSurfaceAdapter::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