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/animation.h" | 8 #include "cc/animation/animation.h" |
9 #include "cc/animation/animation_id_provider.h" | 9 #include "cc/animation/animation_id_provider.h" |
10 #include "cc/animation/keyframed_animation_curve.h" | 10 #include "cc/animation/keyframed_animation_curve.h" |
(...skipping 684 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
695 | 695 |
696 gfx::Vector2dF original_viewport_size = | 696 gfx::Vector2dF original_viewport_size = |
697 gfx::RectF(root_clip->bounds()).bottom_right() - | 697 gfx::RectF(root_clip->bounds()).bottom_right() - |
698 gfx::PointF(); | 698 gfx::PointF(); |
699 original_viewport_size.Scale(1 / page_scale_factor()); | 699 original_viewport_size.Scale(1 / page_scale_factor()); |
700 | 700 |
701 root_scroll->SetFixedContainerSizeDelta( | 701 root_scroll->SetFixedContainerSizeDelta( |
702 scrollable_viewport_size - original_viewport_size); | 702 scrollable_viewport_size - original_viewport_size); |
703 } | 703 } |
704 | 704 |
705 void LayerTreeImpl::SetLatencyInfo(const LatencyInfo& latency_info) { | 705 void LayerTreeImpl::SetLatencyInfo(const ui::LatencyInfo& latency_info) { |
706 latency_info_.MergeWith(latency_info); | 706 latency_info_.MergeWith(latency_info); |
707 } | 707 } |
708 | 708 |
709 const LatencyInfo& LayerTreeImpl::GetLatencyInfo() { | 709 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { |
710 return latency_info_; | 710 return latency_info_; |
711 } | 711 } |
712 | 712 |
713 void LayerTreeImpl::ClearLatencyInfo() { | 713 void LayerTreeImpl::ClearLatencyInfo() { |
714 latency_info_.Clear(); | 714 latency_info_.Clear(); |
715 } | 715 } |
716 | 716 |
717 } // namespace cc | 717 } // namespace cc |
OLD | NEW |