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

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

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/render_pass_test_utils.h ('k') | cc/test/surface_aggregator_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 #ifndef CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 5 #ifndef CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_
6 #define CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 6 #define CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_
7 7
8 #include "cc/base/scoped_ptr_vector.h" 8 #include <vector>
9
9 #include "cc/quads/draw_quad.h" 10 #include "cc/quads/draw_quad.h"
10 #include "cc/quads/render_pass_id.h" 11 #include "cc/quads/render_pass_id.h"
11 #include "cc/surfaces/surface_id.h" 12 #include "cc/surfaces/surface_id.h"
12 #include "third_party/skia/include/core/SkColor.h" 13 #include "third_party/skia/include/core/SkColor.h"
13 #include "ui/gfx/geometry/size.h" 14 #include "ui/gfx/geometry/size.h"
14 15
15 namespace cc { 16 namespace cc {
16 17
17 class RenderPass; 18 class RenderPass;
18 class Surface; 19 class Surface;
19 class TestRenderPass; 20 class TestRenderPass;
20 21
21 typedef ScopedPtrVector<RenderPass> RenderPassList; 22 typedef std::vector<scoped_ptr<RenderPass>> RenderPassList;
22 23
23 namespace test { 24 namespace test {
24 25
25 struct Quad { 26 struct Quad {
26 static Quad SolidColorQuad(SkColor color) { 27 static Quad SolidColorQuad(SkColor color) {
27 Quad quad; 28 Quad quad;
28 quad.material = DrawQuad::SOLID_COLOR; 29 quad.material = DrawQuad::SOLID_COLOR;
29 quad.color = color; 30 quad.color = color;
30 return quad; 31 return quad;
31 } 32 }
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 void TestPassMatchesExpectations(Pass expected_pass, const RenderPass* pass); 86 void TestPassMatchesExpectations(Pass expected_pass, const RenderPass* pass);
86 87
87 void TestPassesMatchExpectations(Pass* expected_passes, 88 void TestPassesMatchExpectations(Pass* expected_passes,
88 size_t expected_pass_count, 89 size_t expected_pass_count,
89 const RenderPassList* passes); 90 const RenderPassList* passes);
90 91
91 } // namespace test 92 } // namespace test
92 } // namespace cc 93 } // namespace cc
93 94
94 #endif // CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 95 #endif // CC_TEST_SURFACE_AGGREGATOR_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « cc/test/render_pass_test_utils.h ('k') | cc/test/surface_aggregator_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698