OLD | NEW |
1 // Copyright 2010 The Chromium Authors. All rights reserved. | 1 // Copyright 2010 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.h" | 5 #include "cc/layer.h" |
6 | 6 |
7 #include "cc/active_animation.h" | 7 #include "cc/active_animation.h" |
8 #include "cc/animation_events.h" | 8 #include "cc/animation_events.h" |
9 #include "cc/layer_animation_controller.h" | 9 #include "cc/layer_animation_controller.h" |
10 #include "cc/layer_impl.h" | 10 #include "cc/layer_impl.h" |
(...skipping 601 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
612 if (replicaLayer()) | 612 if (replicaLayer()) |
613 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); | 613 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); |
614 | 614 |
615 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); | 615 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); |
616 | 616 |
617 // Reset any state that should be cleared for the next update. | 617 // Reset any state that should be cleared for the next update. |
618 m_stackingOrderChanged = false; | 618 m_stackingOrderChanged = false; |
619 m_updateRect = gfx::RectF(); | 619 m_updateRect = gfx::RectF(); |
620 } | 620 } |
621 | 621 |
622 scoped_ptr<LayerImpl> Layer::createLayerImpl(LayerTreeHostImpl* hostImpl) | 622 scoped_ptr<LayerImpl> Layer::createLayerImpl(LayerTreeImpl* treeImpl) |
623 { | 623 { |
624 return LayerImpl::create(hostImpl, m_layerId); | 624 return LayerImpl::create(treeImpl, m_layerId); |
625 } | 625 } |
626 | 626 |
627 bool Layer::drawsContent() const | 627 bool Layer::drawsContent() const |
628 { | 628 { |
629 return m_isDrawable; | 629 return m_isDrawable; |
630 } | 630 } |
631 | 631 |
632 bool Layer::needMoreUpdates() | 632 bool Layer::needMoreUpdates() |
633 { | 633 { |
634 return false; | 634 return false; |
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 { | 840 { |
841 return 0; | 841 return 0; |
842 } | 842 } |
843 | 843 |
844 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) | 844 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) |
845 { | 845 { |
846 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. | 846 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. |
847 } | 847 } |
848 | 848 |
849 } // namespace cc | 849 } // namespace cc |
OLD | NEW |