OLD | NEW |
1 // Copyright 2011 The Chromium Authors. All rights reserved. | 1 // Copyright 2011 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/trees/layer_tree_host_impl.h" | 5 #include "cc/trees/layer_tree_host_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 | 9 |
10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
(...skipping 581 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
592 | 592 |
593 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); | 593 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); |
594 float opacity = 1.f; | 594 float opacity = 1.f; |
595 SharedQuadState* shared_quad_state = | 595 SharedQuadState* shared_quad_state = |
596 quad_culler.UseSharedQuadState(SharedQuadState::Create()); | 596 quad_culler.UseSharedQuadState(SharedQuadState::Create()); |
597 shared_quad_state->SetAll(root_layer->draw_transform(), | 597 shared_quad_state->SetAll(root_layer->draw_transform(), |
598 root_target_rect.size(), | 598 root_target_rect.size(), |
599 root_target_rect, | 599 root_target_rect, |
600 root_target_rect, | 600 root_target_rect, |
601 false, | 601 false, |
602 opacity); | 602 opacity, |
| 603 SkXfermode::kSrcOver_Mode); |
603 | 604 |
604 AppendQuadsData append_quads_data; | 605 AppendQuadsData append_quads_data; |
605 | 606 |
606 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); | 607 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); |
607 bool did_invert = root_layer->screen_space_transform().GetInverse( | 608 bool did_invert = root_layer->screen_space_transform().GetInverse( |
608 &transform_to_layer_space); | 609 &transform_to_layer_space); |
609 DCHECK(did_invert); | 610 DCHECK(did_invert); |
610 for (Region::Iterator fill_rects(screen_background_color_region); | 611 for (Region::Iterator fill_rects(screen_background_color_region); |
611 fill_rects.has_rect(); | 612 fill_rects.has_rect(); |
612 fill_rects.next()) { | 613 fill_rects.next()) { |
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2821 std::set<UIResourceId>::iterator found_in_evicted = | 2822 std::set<UIResourceId>::iterator found_in_evicted = |
2822 evicted_ui_resources_.find(uid); | 2823 evicted_ui_resources_.find(uid); |
2823 if (found_in_evicted == evicted_ui_resources_.end()) | 2824 if (found_in_evicted == evicted_ui_resources_.end()) |
2824 return; | 2825 return; |
2825 evicted_ui_resources_.erase(found_in_evicted); | 2826 evicted_ui_resources_.erase(found_in_evicted); |
2826 if (evicted_ui_resources_.empty()) | 2827 if (evicted_ui_resources_.empty()) |
2827 client_->OnCanDrawStateChanged(CanDraw()); | 2828 client_->OnCanDrawStateChanged(CanDraw()); |
2828 } | 2829 } |
2829 | 2830 |
2830 } // namespace cc | 2831 } // namespace cc |
OLD | NEW |