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

Unified Diff: gpu/ipc/service/pass_through_image_transport_surface.cc

Issue 2673473002: Rename SwapBuffersWithDamage to SwapBuffersWithBounds (Closed)
Patch Set: Fix Cast compile error + autogen test logic Created 3 years, 11 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: gpu/ipc/service/pass_through_image_transport_surface.cc
diff --git a/gpu/ipc/service/pass_through_image_transport_surface.cc b/gpu/ipc/service/pass_through_image_transport_surface.cc
index e3587409bbfbfa23a14fc4f04278f7c9565edd03..f12b15922a57b94ace6fabfcf819ca752a97af50 100644
--- a/gpu/ipc/service/pass_through_image_transport_surface.cc
+++ b/gpu/ipc/service/pass_through_image_transport_surface.cc
@@ -57,15 +57,11 @@ void PassThroughImageTransportSurface::SwapBuffersAsync(
weak_ptr_factory_.GetWeakPtr(), base::Passed(&latency_info), callback));
}
-gfx::SwapResult PassThroughImageTransportSurface::SwapBuffersWithDamage(
- int x,
- int y,
- int width,
- int height) {
+gfx::SwapResult PassThroughImageTransportSurface::SwapBuffersWithBounds(
+ const std::vector<gfx::Rect>& rects) {
std::unique_ptr<std::vector<ui::LatencyInfo>> latency_info =
StartSwapBuffers();
- gfx::SwapResult result =
- gl::GLSurfaceAdapter::SwapBuffersWithDamage(x, y, width, height);
+ gfx::SwapResult result = gl::GLSurfaceAdapter::SwapBuffersWithBounds(rects);
FinishSwapBuffers(std::move(latency_info), result);
return result;
}

Powered by Google App Engine
This is Rietveld 408576698