| 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 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); | 68 scoped_ptr<RenderPassDrawQuad> quad = RenderPassDrawQuad::Create(); |
| 69 quad->SetNew(shared_state, | 69 quad->SetNew(shared_state, |
| 70 output_rect, | 70 output_rect, |
| 71 output_rect, | 71 output_rect, |
| 72 render_pass_id, | 72 render_pass_id, |
| 73 false, | 73 false, |
| 74 0, | 74 0, |
| 75 output_rect, | 75 output_rect, |
| 76 gfx::RectF(), | 76 gfx::RectF(), |
| 77 FilterOperations(), | 77 FilterOperations(), |
| 78 gfx::Vector2dF(), |
| 78 FilterOperations()); | 79 FilterOperations()); |
| 79 quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); | 80 quad_sink.MaybeAppend(quad.PassAs<DrawQuad>()); |
| 80 } | 81 } |
| 81 | 82 |
| 82 void AddQuadInPass(TestRenderPass* pass, Quad desc) { | 83 void AddQuadInPass(TestRenderPass* pass, Quad desc) { |
| 83 switch (desc.material) { | 84 switch (desc.material) { |
| 84 case DrawQuad::SOLID_COLOR: | 85 case DrawQuad::SOLID_COLOR: |
| 85 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); | 86 AddQuad(pass, gfx::Rect(0, 0, 5, 5), desc.color); |
| 86 break; | 87 break; |
| 87 case DrawQuad::SURFACE_CONTENT: | 88 case DrawQuad::SURFACE_CONTENT: |
| (...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 165 delegated_frame_data->render_pass_list.push_back(pass.Pass()); | 166 delegated_frame_data->render_pass_list.push_back(pass.Pass()); |
| 166 | 167 |
| 167 scoped_ptr<CompositorFrame> child_frame(new CompositorFrame); | 168 scoped_ptr<CompositorFrame> child_frame(new CompositorFrame); |
| 168 child_frame->delegated_frame_data = delegated_frame_data.Pass(); | 169 child_frame->delegated_frame_data = delegated_frame_data.Pass(); |
| 169 | 170 |
| 170 surface->QueueFrame(child_frame.Pass()); | 171 surface->QueueFrame(child_frame.Pass()); |
| 171 } | 172 } |
| 172 | 173 |
| 173 } // namespace test | 174 } // namespace test |
| 174 } // namespace cc | 175 } // namespace cc |
| OLD | NEW |