Index: cc/output/output_surface.cc |
diff --git a/cc/output/output_surface.cc b/cc/output/output_surface.cc |
index 349cb3435e5fb8b362e8d8da5977c7b81767f1d8..f3952d51b877cb8360453a215b18f223405a511f 100644 |
--- a/cc/output/output_surface.cc |
+++ b/cc/output/output_surface.cc |
@@ -136,7 +136,7 @@ void OutputSurface::FrameRateControllerTick(bool throttled, |
} |
// Forwarded to OutputSurfaceClient |
-void OutputSurface::SetNeedsRedrawRect(gfx::Rect damage_rect) { |
+void OutputSurface::SetNeedsRedrawRect(const gfx::Rect& damage_rect) { |
TRACE_EVENT0("cc", "OutputSurface::SetNeedsRedrawRect"); |
client_->SetNeedsRedrawRect(damage_rect); |
} |
@@ -242,8 +242,8 @@ void OutputSurface::SetExternalStencilTest(bool enabled) { |
} |
void OutputSurface::SetExternalDrawConstraints(const gfx::Transform& transform, |
- gfx::Rect viewport, |
- gfx::Rect clip, |
+ const gfx::Rect& viewport, |
+ const gfx::Rect& clip, |
bool valid_for_tile_management) { |
client_->SetExternalDrawConstraints( |
transform, viewport, clip, valid_for_tile_management); |