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 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
423 float opacity = 1.f; | 423 float opacity = 1.f; |
424 | 424 |
425 bool force_anti_aliasing_off = false; | 425 bool force_anti_aliasing_off = false; |
426 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); | 426 SharedQuadState* sqs = pass->CreateAndAppendSharedQuadState(); |
427 sqs->SetAll(content_to_target_transform, | 427 sqs->SetAll(content_to_target_transform, |
428 content_bounds, | 428 content_bounds, |
429 visible_content_rect, | 429 visible_content_rect, |
430 clip_rect, | 430 clip_rect, |
431 is_clipped, | 431 is_clipped, |
432 opacity, | 432 opacity, |
433 blend_mode); | 433 blend_mode, |
| 434 0); |
434 | 435 |
435 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create(); | 436 scoped_ptr<SolidColorDrawQuad> color_quad = SolidColorDrawQuad::Create(); |
436 color_quad->SetNew(pass->shared_quad_state_list.back(), | 437 color_quad->SetNew(pass->shared_quad_state_list.back(), |
437 visible_content_rect, | 438 visible_content_rect, |
438 visible_content_rect, | 439 visible_content_rect, |
439 SK_ColorGREEN, | 440 SK_ColorGREEN, |
440 force_anti_aliasing_off); | 441 force_anti_aliasing_off); |
441 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>()); | 442 pass->quad_list.push_back(color_quad.PassAs<DrawQuad>()); |
442 } | 443 } |
443 | 444 |
(...skipping 254 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
698 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i); | 699 DrawQuad* quad = aggregated_pass_list[1]->quad_list.at(i); |
699 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(), | 700 EXPECT_EQ(expected_root_pass_quad_transforms[i].ToString(), |
700 quad->quadTransform().ToString()) | 701 quad->quadTransform().ToString()) |
701 << i; | 702 << i; |
702 } | 703 } |
703 } | 704 } |
704 | 705 |
705 } // namespace | 706 } // namespace |
706 } // namespace cc | 707 } // namespace cc |
707 | 708 |
OLD | NEW |