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

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

Issue 448303002: Use custom ListContainer to allocate DrawQuads (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@perftest
Patch Set: change header files to try fix compile error Created 6 years, 2 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 unified diff | Download patch
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/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_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 5 #ifndef CC_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_
6 #define CC_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 6 #define CC_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_
7 7
8 #include "cc/base/scoped_ptr_vector.h" 8 #include "cc/base/scoped_ptr_vector.h"
9 #include "cc/quads/draw_quad.h" 9 #include "cc/quads/draw_quad.h"
10 #include "cc/quads/render_pass_id.h" 10 #include "cc/quads/render_pass_id.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 const gfx::Size& surface_size, 74 const gfx::Size& surface_size,
75 int surface_id); 75 int surface_id);
76 76
77 void AddQuadInPass(TestRenderPass* pass, Quad desc); 77 void AddQuadInPass(TestRenderPass* pass, Quad desc);
78 78
79 void AddPasses(RenderPassList* pass_list, 79 void AddPasses(RenderPassList* pass_list,
80 const gfx::Rect& output_rect, 80 const gfx::Rect& output_rect,
81 Pass* passes, 81 Pass* passes,
82 size_t pass_count); 82 size_t pass_count);
83 83
84 void TestQuadMatchesExpectations(Quad expected_quad, DrawQuad* quad); 84 void TestQuadMatchesExpectations(Quad expected_quad, const DrawQuad* quad);
85 85
86 void TestPassMatchesExpectations(Pass expected_pass, RenderPass* pass); 86 void TestPassMatchesExpectations(Pass expected_pass, const RenderPass* pass);
87 87
88 void TestPassesMatchExpectations(Pass* expected_passes, 88 void TestPassesMatchExpectations(Pass* expected_passes,
89 size_t expected_pass_count, 89 size_t expected_pass_count,
90 RenderPassList* passes); 90 const RenderPassList* passes);
91 91
92 } // namespace test 92 } // namespace test
93 } // namespace cc 93 } // namespace cc
94 94
95 #endif // CC_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_ 95 #endif // CC_SURFACES_SURFACE_AGGREGATOR_TEST_HELPERS_H_
OLDNEW
« no previous file with comments | « cc/surfaces/surface_aggregator.cc ('k') | cc/surfaces/surface_aggregator_test_helpers.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698