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 557 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
568 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) | 568 void LayerImpl::OnTransformAnimated(const gfx::Transform& transform) |
569 { | 569 { |
570 setTransform(transform); | 570 setTransform(transform); |
571 } | 571 } |
572 | 572 |
573 bool LayerImpl::IsActive() const | 573 bool LayerImpl::IsActive() const |
574 { | 574 { |
575 return m_layerTreeImpl->IsActiveTree(); | 575 return m_layerTreeImpl->IsActiveTree(); |
576 } | 576 } |
577 | 577 |
| 578 bool LayerImpl::IsOrphaned() const |
| 579 { |
| 580 return false; |
| 581 } |
| 582 |
578 void LayerImpl::setBounds(const gfx::Size& bounds) | 583 void LayerImpl::setBounds(const gfx::Size& bounds) |
579 { | 584 { |
580 if (m_bounds == bounds) | 585 if (m_bounds == bounds) |
581 return; | 586 return; |
582 | 587 |
583 m_bounds = bounds; | 588 m_bounds = bounds; |
584 | 589 |
585 if (masksToBounds()) | 590 if (masksToBounds()) |
586 noteLayerPropertyChangedForSubtree(); | 591 noteLayerPropertyChangedForSubtree(); |
587 else | 592 else |
(...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
957 } | 962 } |
958 | 963 |
959 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) | 964 void LayerImpl::setVerticalScrollbarLayer(ScrollbarLayerImpl* scrollbarLayer) |
960 { | 965 { |
961 m_verticalScrollbarLayer = scrollbarLayer; | 966 m_verticalScrollbarLayer = scrollbarLayer; |
962 if (m_verticalScrollbarLayer) | 967 if (m_verticalScrollbarLayer) |
963 m_verticalScrollbarLayer->setScrollLayerId(id()); | 968 m_verticalScrollbarLayer->setScrollLayerId(id()); |
964 } | 969 } |
965 | 970 |
966 } // namespace cc | 971 } // namespace cc |
OLD | NEW |