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.h" | 5 #include "cc/trees/layer_tree_host.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <stack> | 8 #include <stack> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 723 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
734 | 734 |
735 void LayerTreeHost::SetVisible(bool visible) { | 735 void LayerTreeHost::SetVisible(bool visible) { |
736 if (visible_ == visible) | 736 if (visible_ == visible) |
737 return; | 737 return; |
738 visible_ = visible; | 738 visible_ = visible; |
739 if (!visible) | 739 if (!visible) |
740 ReduceMemoryUsage(); | 740 ReduceMemoryUsage(); |
741 proxy_->SetVisible(visible); | 741 proxy_->SetVisible(visible); |
742 } | 742 } |
743 | 743 |
| 744 void LayerTreeHost::SetThrottleFrameProduction(bool throttle) { |
| 745 proxy_->SetThrottleFrameProduction(throttle); |
| 746 } |
| 747 |
744 void LayerTreeHost::StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 748 void LayerTreeHost::StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
745 bool use_anchor, | 749 bool use_anchor, |
746 float scale, | 750 float scale, |
747 base::TimeDelta duration) { | 751 base::TimeDelta duration) { |
748 pending_page_scale_animation_.reset( | 752 pending_page_scale_animation_.reset( |
749 new PendingPageScaleAnimation( | 753 new PendingPageScaleAnimation( |
750 target_offset, | 754 target_offset, |
751 use_anchor, | 755 use_anchor, |
752 scale, | 756 scale, |
753 duration)); | 757 duration)); |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1383 bool children_need_begin_frames) const { | 1387 bool children_need_begin_frames) const { |
1384 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); | 1388 proxy_->SetChildrenNeedBeginFrames(children_need_begin_frames); |
1385 } | 1389 } |
1386 | 1390 |
1387 void LayerTreeHost::SendBeginFramesToChildren( | 1391 void LayerTreeHost::SendBeginFramesToChildren( |
1388 const BeginFrameArgs& args) const { | 1392 const BeginFrameArgs& args) const { |
1389 client_->SendBeginFramesToChildren(args); | 1393 client_->SendBeginFramesToChildren(args); |
1390 } | 1394 } |
1391 | 1395 |
1392 } // namespace cc | 1396 } // namespace cc |
OLD | NEW |