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

Unified Diff: cc/trees/quad_culler_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/trees/quad_culler.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/quad_culler_unittest.cc
diff --git a/cc/trees/quad_culler_unittest.cc b/cc/trees/quad_culler_unittest.cc
index c07a0a79e044ed02e9e40e8f15d2c88b5c615dbb..880035a04cd531e8b07550acbdd096e58b2bba67 100644
--- a/cc/trees/quad_culler_unittest.cc
+++ b/cc/trees/quad_culler_unittest.cc
@@ -30,7 +30,7 @@ namespace {
class TestOcclusionTrackerImpl
: public TestOcclusionTrackerBase<LayerImpl, RenderSurfaceImpl> {
public:
- TestOcclusionTrackerImpl(gfx::Rect scissor_rect_in_screen,
+ TestOcclusionTrackerImpl(const gfx::Rect& scissor_rect_in_screen,
bool record_metrics_for_frame = true)
: TestOcclusionTrackerBase(scissor_rect_in_screen,
record_metrics_for_frame) {}
@@ -52,10 +52,10 @@ class QuadCullerTest : public testing::Test {
scoped_ptr<TiledLayerImpl> MakeLayer(TiledLayerImpl* parent,
const gfx::Transform& draw_transform,
- gfx::Rect layer_rect,
+ const gfx::Rect& layer_rect,
float opacity,
bool opaque,
- gfx::Rect layer_opaque_rect,
+ const gfx::Rect& layer_opaque_rect,
LayerImplList& surface_layer_list) {
scoped_ptr<TiledLayerImpl> layer =
TiledLayerImpl::Create(host_impl_.active_tree(), layer_id_++);
« no previous file with comments | « cc/trees/quad_culler.cc ('k') | cc/trees/single_thread_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698