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/layer_impl.h" | 5 #include "cc/layer_impl.h" |
6 | 6 |
7 #include "base/debug/trace_event.h" | 7 #include "base/debug/trace_event.h" |
8 #include "base/stringprintf.h" | 8 #include "base/stringprintf.h" |
9 #include "base/values.h" | 9 #include "base/values.h" |
10 #include "cc/animation_registrar.h" | 10 #include "cc/animation_registrar.h" |
(...skipping 482 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
493 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) | 493 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) |
494 { | 494 { |
495 setTransform(transform); | 495 setTransform(transform); |
496 } | 496 } |
497 | 497 |
498 bool LayerImpl::IsActive() const | 498 bool LayerImpl::IsActive() const |
499 { | 499 { |
500 return m_layerTreeImpl->IsActiveTree(); | 500 return m_layerTreeImpl->IsActiveTree(); |
501 } | 501 } |
502 | 502 |
| 503 bool LayerImpl::IsOrphaned() const |
| 504 { |
| 505 return false; |
| 506 } |
| 507 |
503 void LayerImpl::setBounds(const gfx::Size& bounds) | 508 void LayerImpl::setBounds(const gfx::Size& bounds) |
504 { | 509 { |
505 if (m_bounds == bounds) | 510 if (m_bounds == bounds) |
506 return; | 511 return; |
507 | 512 |
508 m_bounds = bounds; | 513 m_bounds = bounds; |
509 | 514 |
510 if (masksToBounds()) | 515 if (masksToBounds()) |
511 noteLayerPropertyChangedForSubtree(); | 516 noteLayerPropertyChangedForSubtree(); |
512 else | 517 else |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
857 if (m_layerTreeImpl->settings().useLinearFadeScrollbarAnimator) | 862 if (m_layerTreeImpl->settings().useLinearFadeScrollbarAnimator) |
858 m_scrollbarAnimationController = createScrollbarAnimationControllerW
ithFade(this); | 863 m_scrollbarAnimationController = createScrollbarAnimationControllerW
ithFade(this); |
859 else | 864 else |
860 m_scrollbarAnimationController = ScrollbarAnimationController::creat
e(this); | 865 m_scrollbarAnimationController = ScrollbarAnimationController::creat
e(this); |
861 } | 866 } |
862 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); | 867 m_scrollbarAnimationController->setVerticalScrollbarLayer(scrollbarLayer); |
863 m_scrollbarAnimationController->updateScrollOffset(this); | 868 m_scrollbarAnimationController->updateScrollOffset(this); |
864 } | 869 } |
865 | 870 |
866 } // namespace cc | 871 } // namespace cc |
OLD | NEW |