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 487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
498 | 498 |
499 base::TimeTicks LayerTreeImpl::CurrentFrameTime() const { | 499 base::TimeTicks LayerTreeImpl::CurrentFrameTime() const { |
500 return layer_tree_host_impl_->CurrentFrameTime(); | 500 return layer_tree_host_impl_->CurrentFrameTime(); |
501 } | 501 } |
502 | 502 |
503 void LayerTreeImpl::SetNeedsCommit() { | 503 void LayerTreeImpl::SetNeedsCommit() { |
504 layer_tree_host_impl_->SetNeedsCommit(); | 504 layer_tree_host_impl_->SetNeedsCommit(); |
505 } | 505 } |
506 | 506 |
507 void LayerTreeImpl::SetNeedsRedraw() { | 507 void LayerTreeImpl::SetNeedsRedraw() { |
508 layer_tree_host_impl_->setNeedsRedraw(); | 508 layer_tree_host_impl_->SetNeedsRedraw(); |
509 } | 509 } |
510 | 510 |
511 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { | 511 const LayerTreeDebugState& LayerTreeImpl::debug_state() const { |
512 return layer_tree_host_impl_->debug_state(); | 512 return layer_tree_host_impl_->debug_state(); |
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 |
(...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
660 StartFadeOutAnimation(PinchZoomScrollbarHorizontal()); | 660 StartFadeOutAnimation(PinchZoomScrollbarHorizontal()); |
661 StartFadeOutAnimation(PinchZoomScrollbarVertical()); | 661 StartFadeOutAnimation(PinchZoomScrollbarVertical()); |
662 } | 662 } |
663 | 663 |
664 bool LayerTreeImpl::HasPinchZoomScrollbars() const { | 664 bool LayerTreeImpl::HasPinchZoomScrollbars() const { |
665 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && | 665 return pinch_zoom_scrollbar_horizontal_layer_id_ != Layer::INVALID_ID && |
666 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; | 666 pinch_zoom_scrollbar_vertical_layer_id_ != Layer::INVALID_ID; |
667 } | 667 } |
668 | 668 |
669 } // namespace cc | 669 } // namespace cc |
OLD | NEW |