OLD | NEW |
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 Loading... |
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 |
OLD | NEW |