| 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_impl.h" | 5 #include "cc/trees/layer_tree_impl.h" |
| 6 | 6 |
| 7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
| 8 #include "cc/animation/keyframed_animation_curve.h" | 8 #include "cc/animation/keyframed_animation_curve.h" |
| 9 #include "cc/animation/scrollbar_animation_controller.h" | 9 #include "cc/animation/scrollbar_animation_controller.h" |
| 10 #include "cc/base/math_util.h" | 10 #include "cc/base/math_util.h" |
| (...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 606 } | 606 } |
| 607 | 607 |
| 608 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 608 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
| 609 return layer_tree_host_impl_->DrawViewportSize(); | 609 return layer_tree_host_impl_->DrawViewportSize(); |
| 610 } | 610 } |
| 611 | 611 |
| 612 void LayerTreeImpl::StartScrollbarAnimation() { | 612 void LayerTreeImpl::StartScrollbarAnimation() { |
| 613 layer_tree_host_impl_->StartScrollbarAnimation(); | 613 layer_tree_host_impl_->StartScrollbarAnimation(); |
| 614 } | 614 } |
| 615 | 615 |
| 616 void LayerTreeImpl::DidAnimateScrollOffset() { |
| 617 layer_tree_host_impl_->DidAnimateScrollOffset(); |
| 618 } |
| 619 |
| 616 void LayerTreeImpl::SetNeedsRedraw() { | 620 void LayerTreeImpl::SetNeedsRedraw() { |
| 617 layer_tree_host_impl_->SetNeedsRedraw(); | 621 layer_tree_host_impl_->SetNeedsRedraw(); |
| 618 } | 622 } |
| 619 | 623 |
| 620 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { | 624 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { |
| 621 return layer_tree_host_impl_->debug_state(); | 625 return layer_tree_host_impl_->debug_state(); |
| 622 } | 626 } |
| 623 | 627 |
| 624 float LayerTreeImpl::device_scale_factor() const { | 628 float LayerTreeImpl::device_scale_factor() const { |
| 625 return layer_tree_host_impl_->device_scale_factor(); | 629 return layer_tree_host_impl_->device_scale_factor(); |
| (...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 777 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() | 781 const std::vector<LayerImpl*> LayerTreeImpl::LayersWithCopyOutputRequest() |
| 778 const { | 782 const { |
| 779 // Only the active tree needs to know about layers with copy requests, as | 783 // Only the active tree needs to know about layers with copy requests, as |
| 780 // they are aborted if not serviced during draw. | 784 // they are aborted if not serviced during draw. |
| 781 DCHECK(IsActiveTree()); | 785 DCHECK(IsActiveTree()); |
| 782 | 786 |
| 783 return layers_with_copy_output_request_; | 787 return layers_with_copy_output_request_; |
| 784 } | 788 } |
| 785 | 789 |
| 786 } // namespace cc | 790 } // namespace cc |
| OLD | NEW |