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