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

Unified Diff: gpu/ipc/service/pass_through_image_transport_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 | « gpu/ipc/service/pass_through_image_transport_surface.h ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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;
}
« no previous file with comments | « gpu/ipc/service/pass_through_image_transport_surface.h ('k') | ui/gl/gl_surface.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698