| 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/layers/delegated_renderer_layer_impl.h" | 5 #include "cc/layers/delegated_renderer_layer_impl.h" |
| 6 | 6 |
| 7 #include "cc/base/scoped_ptr_vector.h" | 7 #include "cc/base/scoped_ptr_vector.h" |
| 8 #include "cc/layers/append_quads_data.h" | 8 #include "cc/layers/append_quads_data.h" |
| 9 #include "cc/layers/quad_sink.h" | 9 #include "cc/layers/quad_sink.h" |
| 10 #include "cc/layers/solid_color_layer_impl.h" | 10 #include "cc/layers/solid_color_layer_impl.h" |
| (...skipping 587 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 598 render_pass_quad->SetNew( | 598 render_pass_quad->SetNew( |
| 599 shared_quad_state, | 599 shared_quad_state, |
| 600 gfx::Rect(5, 5, 7, 7), // quad_rect | 600 gfx::Rect(5, 5, 7, 7), // quad_rect |
| 601 gfx::Rect(5, 5, 7, 7), // visible_rect | 601 gfx::Rect(5, 5, 7, 7), // visible_rect |
| 602 RenderPass::Id(10, 7), // render_pass_id | 602 RenderPass::Id(10, 7), // render_pass_id |
| 603 false, // is_replica | 603 false, // is_replica |
| 604 0, // mask_resource_id | 604 0, // mask_resource_id |
| 605 child_pass_rect, // contents_changed_since_last_frame | 605 child_pass_rect, // contents_changed_since_last_frame |
| 606 gfx::RectF(), // mask_uv_rect | 606 gfx::RectF(), // mask_uv_rect |
| 607 FilterOperations(), // filters | 607 FilterOperations(), // filters |
| 608 gfx::Vector2dF(), // filters_scale |
| 608 FilterOperations()); // background_filters | 609 FilterOperations()); // background_filters |
| 609 quad_sink.Append(render_pass_quad.PassAs<DrawQuad>(), &data); | 610 quad_sink.Append(render_pass_quad.PassAs<DrawQuad>(), &data); |
| 610 | 611 |
| 611 scoped_ptr<SolidColorDrawQuad> color_quad; | 612 scoped_ptr<SolidColorDrawQuad> color_quad; |
| 612 color_quad = SolidColorDrawQuad::Create(); | 613 color_quad = SolidColorDrawQuad::Create(); |
| 613 color_quad->SetNew(shared_quad_state, | 614 color_quad->SetNew(shared_quad_state, |
| 614 gfx::Rect(0, 0, 10, 10), | 615 gfx::Rect(0, 0, 10, 10), |
| 615 gfx::Rect(0, 0, 10, 10), | 616 gfx::Rect(0, 0, 10, 10), |
| 616 1u, | 617 1u, |
| 617 false); | 618 false); |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1029 render_pass_quad->SetNew( | 1030 render_pass_quad->SetNew( |
| 1030 shared_quad_state, | 1031 shared_quad_state, |
| 1031 gfx::Rect(5, 5, 7, 7), // quad_rect | 1032 gfx::Rect(5, 5, 7, 7), // quad_rect |
| 1032 gfx::Rect(5, 5, 7, 7), // visible_quad_rect | 1033 gfx::Rect(5, 5, 7, 7), // visible_quad_rect |
| 1033 RenderPass::Id(10, 7), // render_pass_id | 1034 RenderPass::Id(10, 7), // render_pass_id |
| 1034 false, // is_replica | 1035 false, // is_replica |
| 1035 0, // mask_resource_id | 1036 0, // mask_resource_id |
| 1036 child_pass_rect, // contents_changed_since_last_frame | 1037 child_pass_rect, // contents_changed_since_last_frame |
| 1037 gfx::RectF(), // mask_uv_rect | 1038 gfx::RectF(), // mask_uv_rect |
| 1038 FilterOperations(), // filters | 1039 FilterOperations(), // filters |
| 1040 gfx::Vector2dF(), // filters_scale |
| 1039 FilterOperations()); // background_filters | 1041 FilterOperations()); // background_filters |
| 1040 quad_sink.Append(render_pass_quad.PassAs<DrawQuad>(), &data); | 1042 quad_sink.Append(render_pass_quad.PassAs<DrawQuad>(), &data); |
| 1041 | 1043 |
| 1042 scoped_ptr<SolidColorDrawQuad> color_quad; | 1044 scoped_ptr<SolidColorDrawQuad> color_quad; |
| 1043 color_quad = SolidColorDrawQuad::Create(); | 1045 color_quad = SolidColorDrawQuad::Create(); |
| 1044 color_quad->SetNew(shared_quad_state, | 1046 color_quad->SetNew(shared_quad_state, |
| 1045 gfx::Rect(0, 0, 10, 10), | 1047 gfx::Rect(0, 0, 10, 10), |
| 1046 gfx::Rect(0, 0, 10, 10), | 1048 gfx::Rect(0, 0, 10, 10), |
| 1047 1u, | 1049 1u, |
| 1048 false); | 1050 false); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1402 ASSERT_EQ(1u, frame.render_passes[0]->quad_list.size()); | 1404 ASSERT_EQ(1u, frame.render_passes[0]->quad_list.size()); |
| 1403 EXPECT_EQ(DrawQuad::SOLID_COLOR, | 1405 EXPECT_EQ(DrawQuad::SOLID_COLOR, |
| 1404 frame.render_passes[0]->quad_list[0]->material); | 1406 frame.render_passes[0]->quad_list[0]->material); |
| 1405 | 1407 |
| 1406 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); | 1408 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
| 1407 host_impl_->DidDrawAllLayers(frame); | 1409 host_impl_->DidDrawAllLayers(frame); |
| 1408 } | 1410 } |
| 1409 | 1411 |
| 1410 } // namespace | 1412 } // namespace |
| 1411 } // namespace cc | 1413 } // namespace cc |
| OLD | NEW |