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 575 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
586 | 586 |
587 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); | 587 gfx::Rect root_target_rect = root_layer->render_surface()->content_rect(); |
588 float opacity = 1.f; | 588 float opacity = 1.f; |
589 SharedQuadState* shared_quad_state = | 589 SharedQuadState* shared_quad_state = |
590 quad_culler.UseSharedQuadState(SharedQuadState::Create()); | 590 quad_culler.UseSharedQuadState(SharedQuadState::Create()); |
591 shared_quad_state->SetAll(root_layer->draw_transform(), | 591 shared_quad_state->SetAll(root_layer->draw_transform(), |
592 root_target_rect.size(), | 592 root_target_rect.size(), |
593 root_target_rect, | 593 root_target_rect, |
594 root_target_rect, | 594 root_target_rect, |
595 false, | 595 false, |
596 opacity); | 596 opacity, |
| 597 SkXfermode::kSrcOver_Mode); |
597 | 598 |
598 AppendQuadsData append_quads_data; | 599 AppendQuadsData append_quads_data; |
599 | 600 |
600 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); | 601 gfx::Transform transform_to_layer_space(gfx::Transform::kSkipInitialization); |
601 bool did_invert = root_layer->screen_space_transform().GetInverse( | 602 bool did_invert = root_layer->screen_space_transform().GetInverse( |
602 &transform_to_layer_space); | 603 &transform_to_layer_space); |
603 DCHECK(did_invert); | 604 DCHECK(did_invert); |
604 for (Region::Iterator fill_rects(fill_region); | 605 for (Region::Iterator fill_rects(fill_region); |
605 fill_rects.has_rect(); | 606 fill_rects.has_rect(); |
606 fill_rects.next()) { | 607 fill_rects.next()) { |
(...skipping 2152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2759 std::set<UIResourceId>::iterator found_in_evicted = | 2760 std::set<UIResourceId>::iterator found_in_evicted = |
2760 evicted_ui_resources_.find(uid); | 2761 evicted_ui_resources_.find(uid); |
2761 if (found_in_evicted == evicted_ui_resources_.end()) | 2762 if (found_in_evicted == evicted_ui_resources_.end()) |
2762 return; | 2763 return; |
2763 evicted_ui_resources_.erase(found_in_evicted); | 2764 evicted_ui_resources_.erase(found_in_evicted); |
2764 if (evicted_ui_resources_.empty()) | 2765 if (evicted_ui_resources_.empty()) |
2765 client_->OnCanDrawStateChanged(CanDraw()); | 2766 client_->OnCanDrawStateChanged(CanDraw()); |
2766 } | 2767 } |
2767 | 2768 |
2768 } // namespace cc | 2769 } // namespace cc |
OLD | NEW |