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

Unified Diff: cc/trees/occlusion_tracker_perftest.cc

Issue 180243014: Revert "Revert 253606 "Revert 251238 "cc: Clean up iterator template to ..."" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/trees/occlusion_tracker_perftest.cc
diff --git a/cc/trees/occlusion_tracker_perftest.cc b/cc/trees/occlusion_tracker_perftest.cc
index f4a2fafcc298ef22d273c1919844906d9176809c..27123cd6e4b27515fa392999c06fbee584f11a38 100644
--- a/cc/trees/occlusion_tracker_perftest.cc
+++ b/cc/trees/occlusion_tracker_perftest.cc
@@ -91,8 +91,12 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_FullyOccluded) {
ASSERT_EQ(1u, rsll.size());
EXPECT_EQ(1u, rsll[0]->render_surface()->layer_list().size());
- LayerIterator<LayerImpl> begin = LayerIterator<LayerImpl>::Begin(&rsll);
- LayerIterator<LayerImpl> end = LayerIterator<LayerImpl>::End(&rsll);
+ typedef LayerIterator<LayerImpl,
+ LayerImpl::LayerListType,
+ LayerImpl::RenderSurfaceType,
+ LayerIteratorActions::FrontToBack> IteratorType;
+ IteratorType begin = IteratorType::Begin(&rsll);
+ IteratorType end = IteratorType::End(&rsll);
LayerIteratorPosition<LayerImpl> pos = begin;
@@ -166,8 +170,12 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_10OpaqueLayers) {
EXPECT_EQ(static_cast<size_t>(kNumOpaqueLayers),
rsll[0]->render_surface()->layer_list().size());
- LayerIterator<LayerImpl> begin = LayerIterator<LayerImpl>::Begin(&rsll);
- LayerIterator<LayerImpl> end = LayerIterator<LayerImpl>::End(&rsll);
+ typedef LayerIterator<LayerImpl,
+ LayerImpl::LayerListType,
+ LayerImpl::RenderSurfaceType,
+ LayerIteratorActions::FrontToBack> IteratorType;
+ IteratorType begin = IteratorType::Begin(&rsll);
+ IteratorType end = IteratorType::End(&rsll);
// The opaque_layers add occlusion.
for (int i = 0; i < kNumOpaqueLayers - 1; ++i) {
« no previous file with comments | « cc/trees/layer_tree_impl.cc ('k') | cc/trees/occlusion_tracker_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698