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 724 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
735 } | 735 } |
736 | 736 |
737 void LayerTreeImpl::SetNeedsCommit() { | 737 void LayerTreeImpl::SetNeedsCommit() { |
738 layer_tree_host_impl_->SetNeedsCommit(); | 738 layer_tree_host_impl_->SetNeedsCommit(); |
739 } | 739 } |
740 | 740 |
741 gfx::Size LayerTreeImpl::DrawViewportSize() const { | 741 gfx::Size LayerTreeImpl::DrawViewportSize() const { |
742 return layer_tree_host_impl_->DrawViewportSize(); | 742 return layer_tree_host_impl_->DrawViewportSize(); |
743 } | 743 } |
744 | 744 |
| 745 gfx::Rect LayerTreeImpl::TilingViewportRect() const { |
| 746 return layer_tree_host_impl_->TilingViewportRect(); |
| 747 } |
| 748 |
| 749 const gfx::Transform& LayerTreeImpl::TilingTransform() const { |
| 750 return layer_tree_host_impl_->TilingTransform(); |
| 751 } |
| 752 |
745 scoped_ptr<ScrollbarAnimationController> | 753 scoped_ptr<ScrollbarAnimationController> |
746 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) { | 754 LayerTreeImpl::CreateScrollbarAnimationController(LayerImpl* scrolling_layer) { |
747 DCHECK(settings().scrollbar_fade_delay_ms); | 755 DCHECK(settings().scrollbar_fade_delay_ms); |
748 DCHECK(settings().scrollbar_fade_duration_ms); | 756 DCHECK(settings().scrollbar_fade_duration_ms); |
749 base::TimeDelta delay = | 757 base::TimeDelta delay = |
750 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); | 758 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_delay_ms); |
751 base::TimeDelta duration = | 759 base::TimeDelta duration = |
752 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms); | 760 base::TimeDelta::FromMilliseconds(settings().scrollbar_fade_duration_ms); |
753 switch (settings().scrollbar_animator) { | 761 switch (settings().scrollbar_animator) { |
754 case LayerTreeSettings::LinearFade: { | 762 case LayerTreeSettings::LinearFade: { |
(...skipping 620 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1375 | 1383 |
1376 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { | 1384 void LayerTreeImpl::UnregisterPictureLayerImpl(PictureLayerImpl* layer) { |
1377 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); | 1385 layer_tree_host_impl_->UnregisterPictureLayerImpl(layer); |
1378 } | 1386 } |
1379 | 1387 |
1380 void LayerTreeImpl::InputScrollAnimationFinished() { | 1388 void LayerTreeImpl::InputScrollAnimationFinished() { |
1381 layer_tree_host_impl_->ScrollEnd(); | 1389 layer_tree_host_impl_->ScrollEnd(); |
1382 } | 1390 } |
1383 | 1391 |
1384 } // namespace cc | 1392 } // namespace cc |
OLD | NEW |