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

Unified Diff: cc/trees/occlusion_tracker_perftest.cc

Issue 156603005: cc: Clean up iterator template to only take 1 parameter. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: iteratorcleanup: 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 27123cd6e4b27515fa392999c06fbee584f11a38..f4a2fafcc298ef22d273c1919844906d9176809c 100644
--- a/cc/trees/occlusion_tracker_perftest.cc
+++ b/cc/trees/occlusion_tracker_perftest.cc
@@ -91,12 +91,8 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_FullyOccluded) {
ASSERT_EQ(1u, rsll.size());
EXPECT_EQ(1u, rsll[0]->render_surface()->layer_list().size());
- typedef LayerIterator<LayerImpl,
- LayerImpl::LayerListType,
- LayerImpl::RenderSurfaceType,
- LayerIteratorActions::FrontToBack> IteratorType;
- IteratorType begin = IteratorType::Begin(&rsll);
- IteratorType end = IteratorType::End(&rsll);
+ LayerIterator<LayerImpl> begin = LayerIterator<LayerImpl>::Begin(&rsll);
+ LayerIterator<LayerImpl> end = LayerIterator<LayerImpl>::End(&rsll);
LayerIteratorPosition<LayerImpl> pos = begin;
@@ -170,12 +166,8 @@ TEST_F(OcclusionTrackerPerfTest, UnoccludedContentRect_10OpaqueLayers) {
EXPECT_EQ(static_cast<size_t>(kNumOpaqueLayers),
rsll[0]->render_surface()->layer_list().size());
- typedef LayerIterator<LayerImpl,
- LayerImpl::LayerListType,
- LayerImpl::RenderSurfaceType,
- LayerIteratorActions::FrontToBack> IteratorType;
- IteratorType begin = IteratorType::Begin(&rsll);
- IteratorType end = IteratorType::End(&rsll);
+ LayerIterator<LayerImpl> begin = LayerIterator<LayerImpl>::Begin(&rsll);
+ LayerIterator<LayerImpl> end = LayerIterator<LayerImpl>::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