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

Unified Diff: cc/quads/io_surface_draw_quad.h

Issue 145313006: [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to TOT and fixed build errors on other platforms Created 6 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: cc/quads/io_surface_draw_quad.h
diff --git a/cc/quads/io_surface_draw_quad.h b/cc/quads/io_surface_draw_quad.h
index c2307ceaddb1824ebdf5a2034cfd46392e978a22..d4a58b8daa00c8898cea9fd6b48a4195b38a0a15 100644
--- a/cc/quads/io_surface_draw_quad.h
+++ b/cc/quads/io_surface_draw_quad.h
@@ -24,7 +24,7 @@ class CC_EXPORT IOSurfaceDrawQuad : public DrawQuad {
void SetNew(const SharedQuadState* shared_quad_state,
const gfx::Rect& rect,
const gfx::Rect& opaque_rect,
- gfx::Size io_surface_size,
+ const gfx::Size& io_surface_size,
unsigned io_surface_resource_id,
Orientation orientation);
@@ -33,7 +33,7 @@ class CC_EXPORT IOSurfaceDrawQuad : public DrawQuad {
const gfx::Rect& opaque_rect,
const gfx::Rect& visible_rect,
bool needs_blending,
- gfx::Size io_surface_size,
+ const gfx::Size& io_surface_size,
unsigned io_surface_resource_id,
Orientation orientation);

Powered by Google App Engine
This is Rietveld 408576698