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

Side by Side Diff: cc/layers/layer_perftest.cc

Issue 23983047: Pinch/Zoom Infrastructure & Plumbing CL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to r248052. Created 6 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "cc/layers/layer.h" 5 #include "cc/layers/layer.h"
6 6
7 #include "cc/resources/layer_painter.h" 7 #include "cc/resources/layer_painter.h"
8 #include "cc/test/fake_impl_proxy.h" 8 #include "cc/test/fake_impl_proxy.h"
9 #include "cc/test/fake_layer_tree_host.h" 9 #include "cc/test/fake_layer_tree_host.h"
10 #include "cc/test/fake_layer_tree_host_client.h" 10 #include "cc/test/fake_layer_tree_host_client.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 73
74 // Properties changed. 74 // Properties changed.
75 timer_.Reset(); 75 timer_.Reset();
76 do { 76 do {
77 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f)); 77 test_layer->SetNeedsDisplayRect(gfx::RectF(0.f, 0.f, 5.f, 5.f));
78 test_layer->SetAnchorPointZ(anchor_point_z); 78 test_layer->SetAnchorPointZ(anchor_point_z);
79 test_layer->SetContentsOpaque(contents_opaque); 79 test_layer->SetContentsOpaque(contents_opaque);
80 test_layer->SetDoubleSided(double_sided); 80 test_layer->SetDoubleSided(double_sided);
81 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree); 81 test_layer->SetHideLayerAndSubtree(hide_layer_and_subtree);
82 test_layer->SetMasksToBounds(masks_to_bounds); 82 test_layer->SetMasksToBounds(masks_to_bounds);
83 test_layer->SetScrollable(scrollable); 83 test_layer->SetScrollClipLayerId(scrollable ? test_layer->id()
84 : Layer::INVALID_ID);
84 test_layer->PushPropertiesTo(impl_layer.get()); 85 test_layer->PushPropertiesTo(impl_layer.get());
85 86
86 anchor_point_z += 0.01f; 87 anchor_point_z += 0.01f;
87 scrollable = !scrollable; 88 scrollable = !scrollable;
88 contents_opaque = !contents_opaque; 89 contents_opaque = !contents_opaque;
89 double_sided = !double_sided; 90 double_sided = !double_sided;
90 hide_layer_and_subtree = !hide_layer_and_subtree; 91 hide_layer_and_subtree = !hide_layer_and_subtree;
91 masks_to_bounds = !masks_to_bounds; 92 masks_to_bounds = !masks_to_bounds;
92 93
93 timer_.NextLap(); 94 timer_.NextLap();
(...skipping 17 matching lines...) Expand all
111 "", 112 "",
112 "props_didnt_change", 113 "props_didnt_change",
113 timer_.LapsPerSecond(), 114 timer_.LapsPerSecond(),
114 "runs/s", 115 "runs/s",
115 true); 116 true);
116 } 117 }
117 118
118 119
119 } // namespace 120 } // namespace
120 } // namespace cc 121 } // namespace cc
OLDNEW
« no previous file with comments | « cc/layers/layer_impl_unittest.cc ('k') | cc/layers/layer_position_constraint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698