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

Unified Diff: cc/quads/content_draw_quad_base.h

Issue 93663004: [#2] Pass gfx structs by const ref (gfx::Rect, gfx::RectF) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase to ToT, fix builds on non-linux 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
« no previous file with comments | « cc/quads/checkerboard_draw_quad.cc ('k') | cc/quads/content_draw_quad_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/quads/content_draw_quad_base.h
diff --git a/cc/quads/content_draw_quad_base.h b/cc/quads/content_draw_quad_base.h
index cbf18ca2b157f5e933a49506ba7093f8441aa97f..d07bd368b17894d340d66a8b1fef51bb1ae616e8 100644
--- a/cc/quads/content_draw_quad_base.h
+++ b/cc/quads/content_draw_quad_base.h
@@ -18,17 +18,17 @@ class CC_EXPORT ContentDrawQuadBase : public DrawQuad {
public:
void SetNew(const SharedQuadState* shared_quad_state,
DrawQuad::Material material,
- gfx::Rect rect,
- gfx::Rect opaque_rect,
+ const gfx::Rect& rect,
+ const gfx::Rect& opaque_rect,
const gfx::RectF& tex_coord_rect,
gfx::Size texture_size,
bool swizzle_contents);
void SetAll(const SharedQuadState* shared_quad_state,
DrawQuad::Material material,
- gfx::Rect rect,
- gfx::Rect opaque_rect,
- gfx::Rect visible_rect,
+ const gfx::Rect& rect,
+ const gfx::Rect& opaque_rect,
+ const gfx::Rect& visible_rect,
bool needs_blending,
const gfx::RectF& tex_coord_rect,
gfx::Size texture_size,
« no previous file with comments | « cc/quads/checkerboard_draw_quad.cc ('k') | cc/quads/content_draw_quad_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698