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

Unified Diff: cc/layers/content_layer_unittest.cc

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/layers/content_layer_client.h ('k') | cc/layers/delegated_frame_provider_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/layers/content_layer_unittest.cc
diff --git a/cc/layers/content_layer_unittest.cc b/cc/layers/content_layer_unittest.cc
index 724845883e90648c3251c0746662a963ea27d89f..17cf11bc1ac88f71381fef3aaf5788c8a402f49a 100644
--- a/cc/layers/content_layer_unittest.cc
+++ b/cc/layers/content_layer_unittest.cc
@@ -17,11 +17,11 @@ namespace {
class MockContentLayerClient : public ContentLayerClient {
public:
- explicit MockContentLayerClient(gfx::Rect opaque_layer_rect)
+ explicit MockContentLayerClient(const gfx::Rect& opaque_layer_rect)
: opaque_layer_rect_(opaque_layer_rect) {}
virtual void PaintContents(SkCanvas* canvas,
- gfx::Rect clip,
+ const gfx::Rect& clip,
gfx::RectF* opaque) OVERRIDE {
*opaque = gfx::RectF(opaque_layer_rect_);
}
« no previous file with comments | « cc/layers/content_layer_client.h ('k') | cc/layers/delegated_frame_provider_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698