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

Unified Diff: cc/trees/layer_tree_host_unittest_delegated.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/layer_tree_host_unittest.cc ('k') | cc/trees/occlusion_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « cc/trees/layer_tree_host_unittest.cc ('k') | cc/trees/occlusion_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698