| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| (...skipping 790 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 801 SetNeedsCommit(); | 801 SetNeedsCommit(); |
| 802 } | 802 } |
| 803 | 803 |
| 804 void LayerTreeHost::SetVisible(bool visible) { | 804 void LayerTreeHost::SetVisible(bool visible) { |
| 805 if (visible_ == visible) | 805 if (visible_ == visible) |
| 806 return; | 806 return; |
| 807 visible_ = visible; | 807 visible_ = visible; |
| 808 proxy_->SetVisible(visible); | 808 proxy_->SetVisible(visible); |
| 809 } | 809 } |
| 810 | 810 |
| 811 void LayerTreeHost::SetThrottleFrameProduction(bool throttle) { | |
| 812 proxy_->SetThrottleFrameProduction(throttle); | |
| 813 } | |
| 814 | |
| 815 void LayerTreeHost::StartPageScaleAnimation(const gfx::Vector2d& target_offset, | 811 void LayerTreeHost::StartPageScaleAnimation(const gfx::Vector2d& target_offset, |
| 816 bool use_anchor, | 812 bool use_anchor, |
| 817 float scale, | 813 float scale, |
| 818 base::TimeDelta duration) { | 814 base::TimeDelta duration) { |
| 819 pending_page_scale_animation_.reset( | 815 pending_page_scale_animation_.reset( |
| 820 new PendingPageScaleAnimation( | 816 new PendingPageScaleAnimation( |
| 821 target_offset, | 817 target_offset, |
| 822 use_anchor, | 818 use_anchor, |
| 823 scale, | 819 scale, |
| 824 duration)); | 820 duration)); |
| (...skipping 788 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1613 LayerTreeHostCommon::CallFunctionForSubtree( | 1609 LayerTreeHostCommon::CallFunctionForSubtree( |
| 1614 root_layer(), [seq_num](Layer* layer) { | 1610 root_layer(), [seq_num](Layer* layer) { |
| 1615 layer->set_property_tree_sequence_number(seq_num); | 1611 layer->set_property_tree_sequence_number(seq_num); |
| 1616 }); | 1612 }); |
| 1617 | 1613 |
| 1618 surface_id_namespace_ = proto.surface_id_namespace(); | 1614 surface_id_namespace_ = proto.surface_id_namespace(); |
| 1619 next_surface_sequence_ = proto.next_surface_sequence(); | 1615 next_surface_sequence_ = proto.next_surface_sequence(); |
| 1620 } | 1616 } |
| 1621 | 1617 |
| 1622 } // namespace cc | 1618 } // namespace cc |
| OLD | NEW |