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/surfaces/surface_aggregator_test_helpers.h" | 5 #include "cc/surfaces/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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
67 pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); | 67 pass->CreateAndAppendDrawQuad<RenderPassDrawQuad>(); |
68 quad->SetNew(shared_state, | 68 quad->SetNew(shared_state, |
69 output_rect, | 69 output_rect, |
70 output_rect, | 70 output_rect, |
71 render_pass_id, | 71 render_pass_id, |
72 false, | 72 false, |
73 0, | 73 0, |
74 output_rect, | 74 output_rect, |
75 gfx::RectF(), | 75 gfx::RectF(), |
76 FilterOperations(), | 76 FilterOperations(), |
| 77 gfx::Vector2dF(), |
77 FilterOperations()); | 78 FilterOperations()); |
78 } | 79 } |
79 | 80 |
80 void AddQuadInPass(TestRenderPass* pass, Quad desc) { | 81 void AddQuadInPass(TestRenderPass* pass, Quad desc) { |
81 switch (desc.material) { | 82 switch (desc.material) { |
82 case DrawQuad::SOLID_COLOR: | 83 case DrawQuad::SOLID_COLOR: |
83 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); | 84 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); |
84 break; | 85 break; |
85 case DrawQuad::SURFACE_CONTENT: | 86 case DrawQuad::SURFACE_CONTENT: |
86 AddTestSurfaceQuad(pass, gfx::Size(5, 5), desc.surface_id); | 87 AddTestSurfaceQuad(pass, gfx::Size(5, 5), desc.surface_id); |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 | 141 |
141 for (size_t i = 0; i < passes->size(); ++i) { | 142 for (size_t i = 0; i < passes->size(); ++i) { |
142 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i)); | 143 SCOPED_TRACE(base::StringPrintf("Pass number %" PRIuS, i)); |
143 RenderPass* pass = passes->at(i); | 144 RenderPass* pass = passes->at(i); |
144 TestPassMatchesExpectations(expected_passes[i], pass); | 145 TestPassMatchesExpectations(expected_passes[i], pass); |
145 } | 146 } |
146 } | 147 } |
147 | 148 |
148 } // namespace test | 149 } // namespace test |
149 } // namespace cc | 150 } // namespace cc |
OLD | NEW |