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 <limits> | 7 #include <limits> |
8 #include <set> | 8 #include <set> |
9 | 9 |
10 #include "base/debug/trace_event.h" | 10 #include "base/debug/trace_event.h" |
(...skipping 732 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
743 } | 743 } |
744 | 744 |
745 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { | 745 base::TimeDelta LayerTreeImpl::begin_impl_frame_interval() const { |
746 return layer_tree_host_impl_->begin_impl_frame_interval(); | 746 return layer_tree_host_impl_->begin_impl_frame_interval(); |
747 } | 747 } |
748 | 748 |
749 void LayerTreeImpl::SetNeedsCommit() { | 749 void LayerTreeImpl::SetNeedsCommit() { |
750 layer_tree_host_impl_->SetNeedsCommit(); | 750 layer_tree_host_impl_->SetNeedsCommit(); |
751 } | 751 } |
752 | 752 |
| 753 gfx::Rect LayerTreeImpl::DeviceViewport() const { |
| 754 return layer_tree_host_impl_->DeviceViewport(); |
| 755 } |
| 756 |
753 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 757 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
754 return layer_tree_host_impl_->DrawViewportSize(); | 758 return layer_tree_host_impl_->DrawViewportSize(); |
755 } | 759 } |
756 | 760 |
| 761 const gfx::Rect LayerTreeImpl::ViewportRectForTilePriority() const { |
| 762 return layer_tree_host_impl_->ViewportRectForTilePriority(); |
| 763 } |
| 764 |
757 scoped_ptr<ScrollbarAnimationController> | 765 scoped_ptr<ScrollbarAnimationController> |
758 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) { | 766 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) { |
759 DCHECK(settings().scrollbar_fade_delay_ms); | 767 DCHECK(settings().scrollbar_fade_delay_ms); |
760 DCHECK(settings().scrollbar_fade_duration_ms); | 768 DCHECK(settings().scrollbar_fade_duration_ms); |
761 base::TimeDelta delay = | 769 base::TimeDelta delay = |
762 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); | 770 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); |
763 base::TimeDelta duration = | 771 base::TimeDelta duration = |
764 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms); | 772 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms); |
765 switch (settings().scrollbar_animator) { | 773 switch (settings().scrollbar_animator) { |
766 case LayerTreeSettings::LinearFade: { | 774 case LayerTreeSettings::LinearFade: { |
(...skipping 618 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1385 | 1393 |
1386 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1394 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1387 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1395 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1388 } | 1396 } |
1389 | 1397 |
1390 void LayerTreeImpl::InputScrollAnimationFinished() { | 1398 void LayerTreeImpl::InputScrollAnimationFinished() { |
1391 layer_tree_host_impl_->ScrollEnd(); | 1399 layer_tree_host_impl_->ScrollEnd(); |
1392 } | 1400 } |
1393 | 1401 |
1394 } // namespace cc | 1402 } // namespace cc |
OLD | NEW |