| 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/output/compositor_frame.h" | 5 #include "cc/output/compositor_frame.h" |
| 6 #include "cc/output/delegated_frame_data.h" | 6 #include "cc/output/delegated_frame_data.h" |
| 7 #include "cc/quads/render_pass.h" | 7 #include "cc/quads/render_pass.h" |
| 8 #include "cc/quads/render_pass_draw_quad.h" | 8 #include "cc/quads/render_pass_draw_quad.h" |
| 9 #include "cc/quads/solid_color_draw_quad.h" | 9 #include "cc/quads/solid_color_draw_quad.h" |
| 10 #include "cc/quads/surface_draw_quad.h" | 10 #include "cc/quads/surface_draw_quad.h" |
| (...skipping 407 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 418 float opacity = 1.f; | 418 float opacity = 1.f; |
| 419 | 419 |
| 420 bool force_anti_aliasing_off = false; | 420 bool force_anti_aliasing_off = false; |
| 421 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); | 421 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); |
| 422 sqs->SetAll(content_to_target_transform, | 422 sqs->SetAll(content_to_target_transform, |
| 423 content_bounds, | 423 content_bounds, |
| 424 visible_content_rect, | 424 visible_content_rect, |
| 425 clip_rect, | 425 clip_rect, |
| 426 is_clipped, | 426 is_clipped, |
| 427 opacity, | 427 opacity, |
| 428 blend_mode); | 428 blend_mode, |
| 429 0); |
| 429 | 430 |
| 430 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create(); | 431 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create(); |
| 431 color_quad->SetNew(pass->shared_quad_state_list.back(), | 432 color_quad->SetNew(pass->shared_quad_state_list.back(), |
| 432 visible_content_rect, | 433 visible_content_rect, |
| 433 visible_content_rect, | 434 visible_content_rect, |
| 434 SK_ColorGREEN, | 435 SK_ColorGREEN, |
| 435 force_anti_aliasing_off); | 436 force_anti_aliasing_off); |
| 436 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>()); | 437 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>()); |
| 437 } | 438 } |
| 438 | 439 |
| (...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 693 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i); | 694 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i); |
| 694 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(), | 695 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(), |
| 695 quad->quadTransform().ToString()) | 696 quad->quadTransform().ToString()) |
| 696 << i; | 697 << i; |
| 697 } | 698 } |
| 698 } | 699 } |
| 699 | 700 |
| 700 } // namespace | 701 } // namespace |
| 701 } // namespace cc | 702 } // namespace cc |
| 702 | 703 |
| OLD | NEW |