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