| 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/append_quads_data.h" | 7 #include "cc/append_quads_data.h" |
| 8 #include "cc/quad_sink.h" | 8 #include "cc/quad_sink.h" |
| 9 #include "cc/render_pass_draw_quad.h" | 9 #include "cc/render_pass_draw_quad.h" |
| 10 #include "cc/shared_quad_state.h" | 10 #include "cc/shared_quad_state.h" |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 TestRenderPass* contributingPass) { | 45 TestRenderPass* contributingPass) { |
| 46 MockQuadCuller quadSink(toPass->quad_list, toPass->shared_quad_state_list); | 46 MockQuadCuller quadSink(toPass->quad_list, toPass->shared_quad_state_list); |
| 47 AppendQuadsData data(toPass->id); | 47 AppendQuadsData data(toPass->id); |
| 48 gfx::Rect outputRect = contributingPass->output_rect; | 48 gfx::Rect outputRect = contributingPass->output_rect; |
| 49 SharedQuadState* sharedState = | 49 SharedQuadState* sharedState = |
| 50 quadSink.useSharedQuadState(SharedQuadState::Create()); | 50 quadSink.useSharedQuadState(SharedQuadState::Create()); |
| 51 sharedState->SetAll(gfx::Transform(), outputRect, outputRect, outputRect, | 51 sharedState->SetAll(gfx::Transform(), outputRect, outputRect, outputRect, |
| 52 false, 1); | 52 false, 1); |
| 53 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); | 53 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); |
| 54 quad->SetNew(sharedState, outputRect, contributingPass->id, false, 0, | 54 quad->SetNew(sharedState, outputRect, contributingPass->id, false, 0, |
| 55 outputRect, gfx::RectF()); | 55 outputRect, gfx::RectF(), WebKit::WebFilterOperations(), |
| 56 skia::RefPtr<SkImageFilter>(), WebKit::WebFilterOperations()); |
| 56 quadSink.append(quad.PassAs<DrawQuad>(), data); | 57 quadSink.append(quad.PassAs<DrawQuad>(), data); |
| 57 } | 58 } |
| 58 | 59 |
| 59 } // namespace cc | 60 } // namespace cc |
| OLD | NEW |