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 502 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
513 } | 513 } |
514 | 514 |
515 float LayerTreeImpl::device_scale_factor() const { | 515 float LayerTreeImpl::device_scale_factor() const { |
516 return layer_tree_host_impl_->device_scale_factor(); | 516 return layer_tree_host_impl_->device_scale_factor(); |
517 } | 517 } |
518 | 518 |
519 gfx::Size LayerTreeImpl::device_viewport_size() const { | 519 gfx::Size LayerTreeImpl::device_viewport_size() const { |
520 return layer_tree_host_impl_->device_viewport_size(); | 520 return layer_tree_host_impl_->device_viewport_size(); |
521 } | 521 } |
522 | 522 |
523 gfx::Size LayerTreeImpl::layout_viewport_size() const { | |
524 return layer_tree_host_impl_->layout_viewport_size(); | |
525 } | |
526 | |
527 std::string LayerTreeImpl::layer_tree_as_text() const { | 523 std::string LayerTreeImpl::layer_tree_as_text() const { |
528 return layer_tree_host_impl_->LayerTreeAsText(); | 524 return layer_tree_host_impl_->LayerTreeAsText(); |
529 } | 525 } |
530 | 526 |
531 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { | 527 DebugRectHistory* LayerTreeImpl::debug_rect_history() const { |
532 return layer_tree_host_impl_->debug_rect_history(); | 528 return layer_tree_host_impl_->debug_rect_history(); |
533 } | 529 } |
534 | 530 |
535 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { | 531 AnimationRegistrar* LayerTreeImpl::animationRegistrar() const { |
536 return layer_tree_host_impl_->animation_registrar(); | 532 return layer_tree_host_impl_->animation_registrar(); |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 StartFadeOutAnimation(PinchZoomScrollbarHorizontal()); | 656 StartFadeOutAnimation(PinchZoomScrollbarHorizontal()); |
661 StartFadeOutAnimation(PinchZoomScrollbarVertical()); | 657 StartFadeOutAnimation(PinchZoomScrollbarVertical()); |
662 } | 658 } |
663 | 659 |
664 bool LayerTreeImpl::HasPinchZoomScrollbars() const { | 660 bool LayerTreeImpl::HasPinchZoomScrollbars() const { |
665 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && | 661 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && |
666 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; | 662 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; |
667 } | 663 } |
668 | 664 |
669 } // namespace cc | 665 } // namespace cc |
OLD | NEW |