Index: cc/trees/layer_tree_host_unittest_delegated.cc |
diff --git a/cc/trees/layer_tree_host_unittest_delegated.cc b/cc/trees/layer_tree_host_unittest_delegated.cc |
index a45d01c3a9cf672604b49385ce550d24338daeb8..50594f95e50c651824437989e964cb7205af2e7c 100644 |
--- a/cc/trees/layer_tree_host_unittest_delegated.cc |
+++ b/cc/trees/layer_tree_host_unittest_delegated.cc |
@@ -75,8 +75,9 @@ bool ResourcesMatch(ReturnedResourceArray actual, |
// These tests deal with delegated renderer layers. |
class LayerTreeHostDelegatedTest : public LayerTreeTest { |
protected: |
- scoped_ptr<DelegatedFrameData> CreateFrameData(gfx::Rect root_output_rect, |
- gfx::Rect root_damage_rect) { |
+ scoped_ptr<DelegatedFrameData> CreateFrameData( |
+ const gfx::Rect& root_output_rect, |
+ const gfx::Rect& root_damage_rect) { |
scoped_ptr<DelegatedFrameData> frame(new DelegatedFrameData); |
scoped_ptr<RenderPass> root_pass(RenderPass::Create()); |
@@ -89,8 +90,8 @@ class LayerTreeHostDelegatedTest : public LayerTreeTest { |
} |
scoped_ptr<DelegatedFrameData> CreateInvalidFrameData( |
- gfx::Rect root_output_rect, |
- gfx::Rect root_damage_rect) { |
+ const gfx::Rect& root_output_rect, |
+ const gfx::Rect& root_damage_rect) { |
scoped_ptr<DelegatedFrameData> frame(new DelegatedFrameData); |
scoped_ptr<RenderPass> root_pass(RenderPass::Create()); |
@@ -160,8 +161,8 @@ class LayerTreeHostDelegatedTest : public LayerTreeTest { |
void AddRenderPass(DelegatedFrameData* frame, |
RenderPass::Id id, |
- gfx::Rect output_rect, |
- gfx::Rect damage_rect, |
+ const gfx::Rect& output_rect, |
+ const gfx::Rect& damage_rect, |
const FilterOperations& filters, |
const FilterOperations& background_filters) { |
for (size_t i = 0; i < frame->render_pass_list.size(); ++i) |