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

Unified Diff: cc/test/render_pass_test_utils.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/test/pixel_test.cc ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/test/render_pass_test_utils.h
diff --git a/cc/test/render_pass_test_utils.h b/cc/test/render_pass_test_utils.h
index 650cbc03dc0d5e033c4041bc05400fb8fa99d37d..db739b9518bdc947cb12b1d9fbea4a61cfe7dba1 100644
--- a/cc/test/render_pass_test_utils.h
+++ b/cc/test/render_pass_test_utils.h
@@ -26,22 +26,22 @@ class TestRenderPass;
TestRenderPass* AddRenderPass(
RenderPassList* pass_list,
RenderPass::Id id,
- gfx::Rect output_rect,
+ const gfx::Rect& output_rect,
const gfx::Transform& root_transform);
// Adds a solid quad to a given render pass.
SolidColorDrawQuad* AddQuad(TestRenderPass* pass,
- gfx::Rect rect,
+ const gfx::Rect& rect,
SkColor color);
// Adds a solid quad to a given render pass and sets is_clipped=true.
SolidColorDrawQuad* AddClippedQuad(TestRenderPass* pass,
- gfx::Rect rect,
+ const gfx::Rect& rect,
SkColor color);
// Adds a solid quad with a transform to a given render pass.
SolidColorDrawQuad* AddTransformedQuad(TestRenderPass* pass,
- gfx::Rect rect,
+ const gfx::Rect& rect,
SkColor color,
const gfx::Transform& transform);
« no previous file with comments | « cc/test/pixel_test.cc ('k') | cc/test/render_pass_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698