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/debug/traced_value.h" | 10 #include "cc/debug/traced_value.h" |
(...skipping 536 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
547 | 547 |
548 gfx::Vector2dF original_viewport_size = | 548 gfx::Vector2dF original_viewport_size = |
549 gfx::RectF(root_clip->bounds()).bottom_right() - | 549 gfx::RectF(root_clip->bounds()).bottom_right() - |
550 gfx::PointF(); | 550 gfx::PointF(); |
551 original_viewport_size.Scale(1 / page_scale_factor()); | 551 original_viewport_size.Scale(1 / page_scale_factor()); |
552 | 552 |
553 root_scroll->SetFixedContainerSizeDelta( | 553 root_scroll->SetFixedContainerSizeDelta( |
554 scrollable_viewport_size - original_viewport_size); | 554 scrollable_viewport_size - original_viewport_size); |
555 } | 555 } |
556 | 556 |
557 void LayerTreeImpl::SetLatencyInfo(const LatencyInfo& latency_info) { | 557 void LayerTreeImpl::SetLatencyInfo(const ui::LatencyInfo& latency_info) { |
558 latency_info_.MergeWith(latency_info); | 558 latency_info_.MergeWith(latency_info); |
559 } | 559 } |
560 | 560 |
561 const LatencyInfo& LayerTreeImpl::GetLatencyInfo() { | 561 const ui::LatencyInfo& LayerTreeImpl::GetLatencyInfo() { |
562 return latency_info_; | 562 return latency_info_; |
563 } | 563 } |
564 | 564 |
565 void LayerTreeImpl::ClearLatencyInfo() { | 565 void LayerTreeImpl::ClearLatencyInfo() { |
566 latency_info_.Clear(); | 566 latency_info_.Clear(); |
567 } | 567 } |
568 | 568 |
569 void LayerTreeImpl::WillModifyTilePriorities() { | 569 void LayerTreeImpl::WillModifyTilePriorities() { |
570 layer_tree_host_impl_->tile_manager()->WillModifyTilePriorities(); | 570 layer_tree_host_impl_->tile_manager()->WillModifyTilePriorities(); |
571 } | 571 } |
572 | 572 |
573 } // namespace cc | 573 } // namespace cc |
OLD | NEW |