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

Unified Diff: content/renderer/android/synchronous_compositor_output_surface.cc

Issue 1417893006: sync compositor: pass simple gfx types by const ref (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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 | « content/renderer/android/synchronous_compositor_output_surface.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/android/synchronous_compositor_output_surface.cc
diff --git a/content/renderer/android/synchronous_compositor_output_surface.cc b/content/renderer/android/synchronous_compositor_output_surface.cc
index b572e28a791a22cfb77c494af494d94c07620008..9a48dff351830d12939eb46b719ce81f52110cd6 100644
--- a/content/renderer/android/synchronous_compositor_output_surface.cc
+++ b/content/renderer/android/synchronous_compositor_output_surface.cc
@@ -133,11 +133,11 @@ void SynchronousCompositorOutputSurface::Invalidate() {
scoped_ptr<cc::CompositorFrame>
SynchronousCompositorOutputSurface::DemandDrawHw(
- gfx::Size surface_size,
+ const gfx::Size& surface_size,
const gfx::Transform& transform,
- gfx::Rect viewport,
- gfx::Rect clip,
- gfx::Rect viewport_rect_for_tile_priority,
+ const gfx::Rect& viewport,
+ const gfx::Rect& clip,
+ const gfx::Rect& viewport_rect_for_tile_priority,
const gfx::Transform& transform_for_tile_priority) {
DCHECK(CalledOnValidThread());
DCHECK(HasClient());
@@ -183,10 +183,10 @@ SynchronousCompositorOutputSurface::DemandDrawSw(SkCanvas* canvas) {
void SynchronousCompositorOutputSurface::InvokeComposite(
const gfx::Transform& transform,
- gfx::Rect viewport,
- gfx::Rect clip,
- gfx::Rect viewport_rect_for_tile_priority,
- gfx::Transform transform_for_tile_priority,
+ const gfx::Rect& viewport,
+ const gfx::Rect& clip,
+ const gfx::Rect& viewport_rect_for_tile_priority,
+ const gfx::Transform& transform_for_tile_priority,
bool hardware_draw) {
DCHECK(!frame_holder_.get());
« no previous file with comments | « content/renderer/android/synchronous_compositor_output_surface.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698