| 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 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 677 } | 677 } |
| 678 | 678 |
| 679 bool LayerTreeImpl::PinchGestureActive() const { | 679 bool LayerTreeImpl::PinchGestureActive() const { |
| 680 return layer_tree_host_impl_->pinch_gesture_active(); | 680 return layer_tree_host_impl_->pinch_gesture_active(); |
| 681 } | 681 } |
| 682 | 682 |
| 683 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { | 683 base::TimeTicks LayerTreeImpl::CurrentFrameTimeTicks() const { |
| 684 return layer_tree_host_impl_->CurrentFrameTimeTicks(); | 684 return layer_tree_host_impl_->CurrentFrameTimeTicks(); |
| 685 } | 685 } |
| 686 | 686 |
| 687 base::Time LayerTreeImpl::CurrentFrameTime() const { | |
| 688 return layer_tree_host_impl_->CurrentFrameTime(); | |
| 689 } | |
| 690 | |
| 691 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const { | 687 base::TimeTicks LayerTreeImpl::CurrentPhysicalTimeTicks() const { |
| 692 return layer_tree_host_impl_->CurrentPhysicalTimeTicks(); | 688 return layer_tree_host_impl_->CurrentPhysicalTimeTicks(); |
| 693 } | 689 } |
| 694 | 690 |
| 695 void LayerTreeImpl::SetNeedsCommit() { | 691 void LayerTreeImpl::SetNeedsCommit() { |
| 696 layer_tree_host_impl_->SetNeedsCommit(); | 692 layer_tree_host_impl_->SetNeedsCommit(); |
| 697 } | 693 } |
| 698 | 694 |
| 699 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 695 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
| 700 return layer_tree_host_impl_->DrawViewportSize(); | 696 return layer_tree_host_impl_->DrawViewportSize(); |
| (...skipping 282 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 983 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() | 979 const std::vector<LayerImpl*>& LayerTreeImpl::LayersWithCopyOutputRequest() |
| 984 const { | 980 const { |
| 985 // Only the active tree needs to know about layers with copy requests, as | 981 // Only the active tree needs to know about layers with copy requests, as |
| 986 // they are aborted if not serviced during draw. | 982 // they are aborted if not serviced during draw. |
| 987 DCHECK(IsActiveTree()); | 983 DCHECK(IsActiveTree()); |
| 988 | 984 |
| 989 return layers_with_copy_output_request_; | 985 return layers_with_copy_output_request_; |
| 990 } | 986 } |
| 991 | 987 |
| 992 } // namespace cc | 988 } // namespace cc |
| OLD | NEW |