OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 2012 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/render_pass_test_utils.h" | 5 #include "cc/test/render_pass_test_utils.h" |
6 | 6 |
7 #include "cc/quads/render_pass_draw_quad.h" | 7 #include "cc/quads/render_pass_draw_quad.h" |
8 #include "cc/quads/shared_quad_state.h" | 8 #include "cc/quads/shared_quad_state.h" |
9 #include "cc/quads/solid_color_draw_quad.h" | 9 #include "cc/quads/solid_color_draw_quad.h" |
10 #include "cc/resources/resource_provider.h" | 10 #include "cc/resources/resource_provider.h" |
11 #include "cc/test/render_pass_test_common.h" | 11 #include "cc/test/render_pass_test_common.h" |
12 #include "third_party/skia/include/core/SkColor.h" | 12 #include "third_party/skia/include/core/SkColor.h" |
13 #include "third_party/skia/include/core/SkImageFilter.h" | 13 #include "third_party/skia/include/core/SkImageFilter.h" |
14 #include "ui/gfx/rect.h" | 14 #include "ui/gfx/rect.h" |
15 | 15 |
16 namespace cc { | 16 namespace cc { |
17 | 17 |
18 TestRenderPass* AddRenderPass(RenderPassList* pass_list, | 18 TestRenderPass* AddRenderPass(RenderPassList* pass_list, |
19 RenderPass::Id id, | 19 RenderPassId id, |
20 const gfx::Rect& output_rect, | 20 const gfx::Rect& output_rect, |
21 const gfx::Transform& root_transform) { | 21 const gfx::Transform& root_transform) { |
22 scoped_ptr<TestRenderPass> pass(TestRenderPass::Create()); | 22 scoped_ptr<TestRenderPass> pass(TestRenderPass::Create()); |
23 pass->SetNew(id, output_rect, output_rect, root_transform); | 23 pass->SetNew(id, output_rect, output_rect, root_transform); |
24 TestRenderPass* saved = pass.get(); | 24 TestRenderPass* saved = pass.get(); |
25 pass_list->push_back(pass.PassAs<RenderPass>()); | 25 pass_list->push_back(pass.PassAs<RenderPass>()); |
26 return saved; | 26 return saved; |
27 } | 27 } |
28 | 28 |
29 SolidColorDrawQuad* AddQuad(TestRenderPass* pass, | 29 SolidColorDrawQuad* AddQuad(TestRenderPass* pass, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
128 output_rect, | 128 output_rect, |
129 contributing_pass->id, | 129 contributing_pass->id, |
130 mask_resource_id, | 130 mask_resource_id, |
131 gfx::RectF(), | 131 gfx::RectF(), |
132 filters, | 132 filters, |
133 gfx::Vector2dF(), | 133 gfx::Vector2dF(), |
134 FilterOperations()); | 134 FilterOperations()); |
135 } | 135 } |
136 | 136 |
137 } // namespace cc | 137 } // namespace cc |
OLD | NEW |