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 572 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
583 | 583 |
584 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); | 584 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); |
585 float opacity = 1.f; | 585 float opacity = 1.f; |
586 SharedQuadState* shared_quad_state = | 586 SharedQuadState* shared_quad_state = |
587 quad_culler.UseSharedQuadState(SharedQuadState::Create()); | 587 quad_culler.UseSharedQuadState(SharedQuadState::Create()); |
588 shared_quad_state->SetAll(root_layer->draw_transform(), | 588 shared_quad_state->SetAll(root_layer->draw_transform(), |
589 root_target_rect.size(), | 589 root_target_rect.size(), |
590 root_target_rect, | 590 root_target_rect, |
591 root_target_rect, | 591 root_target_rect, |
592 false, | 592 false, |
593 opacity); | 593 opacity, |
| 594 SkXfermode::kSrcOver_Mode); |
594 | 595 |
595 AppendQuadsData append_quads_data; | 596 AppendQuadsData append_quads_data; |
596 | 597 |
597 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); | 598 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); |
598 bool did_invert = root_layer->screen_space_transform().GetInverse( | 599 bool did_invert = root_layer->screen_space_transform().GetInverse( |
599 &transform_to_layer_space); | 600 &transform_to_layer_space); |
600 DCHECK(did_invert); | 601 DCHECK(did_invert); |
601 for (Region::Iterator fill_rects(fill_region); | 602 for (Region::Iterator fill_rects(fill_region); |
602 fill_rects.has_rect(); | 603 fill_rects.has_rect(); |
603 fill_rects.next()) { | 604 fill_rects.next()) { |
(...skipping 2209 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2813 std::set<UIResourceId>::iterator found_in_evicted = | 2814 std::set<UIResourceId>::iterator found_in_evicted = |
2814 evicted_ui_resources_.find(uid); | 2815 evicted_ui_resources_.find(uid); |
2815 if (found_in_evicted == evicted_ui_resources_.end()) | 2816 if (found_in_evicted == evicted_ui_resources_.end()) |
2816 return; | 2817 return; |
2817 evicted_ui_resources_.erase(found_in_evicted); | 2818 evicted_ui_resources_.erase(found_in_evicted); |
2818 if (evicted_ui_resources_.empty()) | 2819 if (evicted_ui_resources_.empty()) |
2819 client_->OnCanDrawStateChanged(CanDraw()); | 2820 client_->OnCanDrawStateChanged(CanDraw()); |
2820 } | 2821 } |
2821 | 2822 |
2822 } // namespace cc | 2823 } // namespace cc |
OLD | NEW |