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

Side by Side Diff: cc/test/surface_aggregator_test_helpers.cc

Issue 1437413002: cc: Remove ScopedPtrVector and cc::remove_if. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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
« no previous file with comments | « cc/test/surface_aggregator_test_helpers.h ('k') | cc/test/surface_hittest_test_helpers.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/test/surface_aggregator_test_helpers.h" 5 #include "cc/test/surface_aggregator_test_helpers.h"
6 6
7 #include "base/format_macros.h" 7 #include "base/format_macros.h"
8 #include "base/strings/stringprintf.h" 8 #include "base/strings/stringprintf.h"
9 #include "cc/layers/append_quads_data.h" 9 #include "cc/layers/append_quads_data.h"
10 #include "cc/output/compositor_frame.h" 10 #include "cc/output/compositor_frame.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 } 122 }
123 } 123 }
124 124
125 void TestPassesMatchExpectations(Pass* expected_passes, 125 void TestPassesMatchExpectations(Pass* expected_passes,
126 size_t expected_pass_count, 126 size_t expected_pass_count,
127 const RenderPassList* passes) { 127 const RenderPassList* passes) {
128 ASSERT_EQ(expected_pass_count, passes->size()); 128 ASSERT_EQ(expected_pass_count, passes->size());
129 129
130 for (size_t i = 0; i < passes->size(); ++i) { 130 for (size_t i = 0; i < passes->size(); ++i) {
131 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i)); 131 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i));
132 RenderPass* pass = passes->at(i); 132 RenderPass* pass = (*passes)[i].get();
133 TestPassMatchesExpectations(expected_passes[i], pass); 133 TestPassMatchesExpectations(expected_passes[i], pass);
134 } 134 }
135 } 135 }
136 136
137 } // namespace test 137 } // namespace test
138 } // namespace cc 138 } // namespace cc
OLDNEW
« no previous file with comments | « cc/test/surface_aggregator_test_helpers.h ('k') | cc/test/surface_hittest_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698