| 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/quad_sink.h" | 8 #include "cc/layers/quad_sink.h" |
| 9 #include "cc/layers/solid_color_layer_impl.h" | 9 #include "cc/layers/solid_color_layer_impl.h" |
| 10 #include "cc/quads/render_pass_draw_quad.h" | 10 #include "cc/quads/render_pass_draw_quad.h" |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 595 render_pass_quad->SetNew( | 595 render_pass_quad->SetNew( |
| 596 shared_quad_state, | 596 shared_quad_state, |
| 597 gfx::Rect(5, 5, 7, 7), // quad_rect | 597 gfx::Rect(5, 5, 7, 7), // quad_rect |
| 598 gfx::Rect(5, 5, 7, 7), // visible_rect | 598 gfx::Rect(5, 5, 7, 7), // visible_rect |
| 599 RenderPass::Id(10, 7), // render_pass_id | 599 RenderPass::Id(10, 7), // render_pass_id |
| 600 false, // is_replica | 600 false, // is_replica |
| 601 0, // mask_resource_id | 601 0, // mask_resource_id |
| 602 child_pass_rect, // contents_changed_since_last_frame | 602 child_pass_rect, // contents_changed_since_last_frame |
| 603 gfx::RectF(), // mask_uv_rect | 603 gfx::RectF(), // mask_uv_rect |
| 604 FilterOperations(), // filters | 604 FilterOperations(), // filters |
| 605 gfx::Vector2dF(), // filters_scale |
| 605 FilterOperations()); // background_filters | 606 FilterOperations()); // background_filters |
| 606 quad_sink.MaybeAppend(render_pass_quad.PassAs<DrawQuad>()); | 607 quad_sink.MaybeAppend(render_pass_quad.PassAs<DrawQuad>()); |
| 607 | 608 |
| 608 scoped_ptr<SolidColorDrawQuad> color_quad; | 609 scoped_ptr<SolidColorDrawQuad> color_quad; |
| 609 color_quad = SolidColorDrawQuad::Create(); | 610 color_quad = SolidColorDrawQuad::Create(); |
| 610 color_quad->SetNew(shared_quad_state, | 611 color_quad->SetNew(shared_quad_state, |
| 611 gfx::Rect(0, 0, 10, 10), | 612 gfx::Rect(0, 0, 10, 10), |
| 612 gfx::Rect(0, 0, 10, 10), | 613 gfx::Rect(0, 0, 10, 10), |
| 613 1u, | 614 1u, |
| 614 false); | 615 false); |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1024 render_pass_quad->SetNew( | 1025 render_pass_quad->SetNew( |
| 1025 shared_quad_state, | 1026 shared_quad_state, |
| 1026 gfx::Rect(5, 5, 7, 7), // quad_rect | 1027 gfx::Rect(5, 5, 7, 7), // quad_rect |
| 1027 gfx::Rect(5, 5, 7, 7), // visible_quad_rect | 1028 gfx::Rect(5, 5, 7, 7), // visible_quad_rect |
| 1028 RenderPass::Id(10, 7), // render_pass_id | 1029 RenderPass::Id(10, 7), // render_pass_id |
| 1029 false, // is_replica | 1030 false, // is_replica |
| 1030 0, // mask_resource_id | 1031 0, // mask_resource_id |
| 1031 child_pass_rect, // contents_changed_since_last_frame | 1032 child_pass_rect, // contents_changed_since_last_frame |
| 1032 gfx::RectF(), // mask_uv_rect | 1033 gfx::RectF(), // mask_uv_rect |
| 1033 FilterOperations(), // filters | 1034 FilterOperations(), // filters |
| 1035 gfx::Vector2dF(), // filters_scale |
| 1034 FilterOperations()); // background_filters | 1036 FilterOperations()); // background_filters |
| 1035 quad_sink.MaybeAppend(render_pass_quad.PassAs<DrawQuad>()); | 1037 quad_sink.MaybeAppend(render_pass_quad.PassAs<DrawQuad>()); |
| 1036 | 1038 |
| 1037 scoped_ptr<SolidColorDrawQuad> color_quad; | 1039 scoped_ptr<SolidColorDrawQuad> color_quad; |
| 1038 color_quad = SolidColorDrawQuad::Create(); | 1040 color_quad = SolidColorDrawQuad::Create(); |
| 1039 color_quad->SetNew(shared_quad_state, | 1041 color_quad->SetNew(shared_quad_state, |
| 1040 gfx::Rect(0, 0, 10, 10), | 1042 gfx::Rect(0, 0, 10, 10), |
| 1041 gfx::Rect(0, 0, 10, 10), | 1043 gfx::Rect(0, 0, 10, 10), |
| 1042 1u, | 1044 1u, |
| 1043 false); | 1045 false); |
| (...skipping 353 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1397 ASSERT_EQ(1u, frame.render_passes[0]->quad_list.size()); | 1399 ASSERT_EQ(1u, frame.render_passes[0]->quad_list.size()); |
| 1398 EXPECT_EQ(DrawQuad::SOLID_COLOR, | 1400 EXPECT_EQ(DrawQuad::SOLID_COLOR, |
| 1399 frame.render_passes[0]->quad_list[0]->material); | 1401 frame.render_passes[0]->quad_list[0]->material); |
| 1400 | 1402 |
| 1401 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); | 1403 host_impl_->DrawLayers(&frame, gfx::FrameTime::Now()); |
| 1402 host_impl_->DidDrawAllLayers(frame); | 1404 host_impl_->DidDrawAllLayers(frame); |
| 1403 } | 1405 } |
| 1404 | 1406 |
| 1405 } // namespace | 1407 } // namespace |
| 1406 } // namespace cc | 1408 } // namespace cc |
| OLD | NEW |