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

Unified Diff: cc/resources/picture_layer_tiling_unittest.cc

Issue 142863008: Revert of [#7] Pass gfx structs by const ref (gfx::Size) (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/picture_pile_base.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/picture_layer_tiling_unittest.cc
diff --git a/cc/resources/picture_layer_tiling_unittest.cc b/cc/resources/picture_layer_tiling_unittest.cc
index 83dc4aa09bd61ae7f3f218d2832d93c80e69a26a..002e9aad8dd5af2f38a7e2a900291d36dbba780a 100644
--- a/cc/resources/picture_layer_tiling_unittest.cc
+++ b/cc/resources/picture_layer_tiling_unittest.cc
@@ -18,7 +18,7 @@
static gfx::Rect ViewportInLayerSpace(
const gfx::Transform& transform,
- const gfx::Size& device_viewport) {
+ gfx::Size device_viewport) {
gfx::Transform inverse;
if (!transform.GetInverse(&inverse))
@@ -37,7 +37,7 @@
static scoped_ptr<TestablePictureLayerTiling> Create(
float contents_scale,
- const gfx::Size& layer_bounds,
+ gfx::Size layer_bounds,
PictureLayerTilingClient* client) {
return make_scoped_ptr(new TestablePictureLayerTiling(
contents_scale,
@@ -47,7 +47,7 @@
protected:
TestablePictureLayerTiling(float contents_scale,
- const gfx::Size& layer_bounds,
+ gfx::Size layer_bounds,
PictureLayerTilingClient* client)
: PictureLayerTiling(contents_scale, layer_bounds, client) { }
};
@@ -57,9 +57,9 @@
PictureLayerTilingIteratorTest() {}
virtual ~PictureLayerTilingIteratorTest() {}
- void Initialize(const gfx::Size& tile_size,
+ void Initialize(gfx::Size tile_size,
float contents_scale,
- const gfx::Size& layer_bounds) {
+ gfx::Size layer_bounds) {
client_.SetTileSize(tile_size);
tiling_ = TestablePictureLayerTiling::Create(contents_scale,
layer_bounds,
« no previous file with comments | « cc/resources/picture_layer_tiling_set_unittest.cc ('k') | cc/resources/picture_pile_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698