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/geometry/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 RenderPassId 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(); |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
132 contributing_pass->id, | 132 contributing_pass->id, |
133 mask_resource_id, | 133 mask_resource_id, |
134 gfx::Vector2dF(1.f, 1.f), | 134 gfx::Vector2dF(1.f, 1.f), |
135 arbitrary_nonzero_size, | 135 arbitrary_nonzero_size, |
136 filters, | 136 filters, |
137 gfx::Vector2dF(), | 137 gfx::Vector2dF(), |
138 FilterOperations()); | 138 FilterOperations()); |
139 } | 139 } |
140 | 140 |
141 } // namespace cc | 141 } // namespace cc |
OLD | NEW |