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 664 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
675 } | 675 } |
676 | 676 |
677 bool LayerTreeImpl::PinchGestureActive() const { | 677 bool LayerTreeImpl::PinchGestureActive() const { |
678 return layer_tree_host_impl_->pinch_gesture_active(); | 678 return layer_tree_host_impl_->pinch_gesture_active(); |
679 } | 679 } |
680 | 680 |
681 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { | 681 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { |
682 return layer_tree_host_impl_->CurrentFrameTimeTicks(); | 682 return layer_tree_host_impl_->CurrentFrameTimeTicks(); |
683 } | 683 } |
684 | 684 |
685 base::Time LayerTreeImpl::CurrentFrameTime() const { | |
686 return layer_tree_host_impl_->CurrentFrameTime(); | |
687 } | |
688 | |
689 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const { | 685 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const { |
690 return layer_tree_host_impl_->CurrentPhysicalTimeTicks(); | 686 return layer_tree_host_impl_->CurrentPhysicalTimeTicks(); |
691 } | 687 } |
692 | 688 |
693 void LayerTreeImpl::SetNeedsCommit() { | 689 void LayerTreeImpl::SetNeedsCommit() { |
694 layer_tree_host_impl_->SetNeedsCommit(); | 690 layer_tree_host_impl_->SetNeedsCommit(); |
695 } | 691 } |
696 | 692 |
697 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 693 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
698 return layer_tree_host_impl_->DrawViewportSize(); | 694 return layer_tree_host_impl_->DrawViewportSize(); |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
958 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() | 954 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() |
959 const { | 955 const { |
960 // Only the active tree needs to know about layers with copy requests, as | 956 // Only the active tree needs to know about layers with copy requests, as |
961 // they are aborted if not serviced during draw. | 957 // they are aborted if not serviced during draw. |
962 DCHECK(IsActiveTree()); | 958 DCHECK(IsActiveTree()); |
963 | 959 |
964 return layers_with_copy_output_request_; | 960 return layers_with_copy_output_request_; |
965 } | 961 } |
966 | 962 |
967 } // namespace cc | 963 } // namespace cc |
OLD | NEW |