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 598 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
609 if (replicaLayer()) | 609 if (replicaLayer()) |
610 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); | 610 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); |
611 | 611 |
612 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); | 612 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); |
613 | 613 |
614 // Reset any state that should be cleared for the next update. | 614 // Reset any state that should be cleared for the next update. |
615 m_stackingOrderChanged = false; | 615 m_stackingOrderChanged = false; |
616 m_updateRect = gfx::RectF(); | 616 m_updateRect = gfx::RectF(); |
617 } | 617 } |
618 | 618 |
619 scoped_ptr<LayerImpl> Layer::createLayerImpl() | 619 scoped_ptr<LayerImpl> Layer::createLayerImpl(LayerTreeHostImpl* hostImpl) |
620 { | 620 { |
621 return LayerImpl::create(m_layerId); | 621 return LayerImpl::create(hostImpl, m_layerId); |
622 } | 622 } |
623 | 623 |
624 bool Layer::drawsContent() const | 624 bool Layer::drawsContent() const |
625 { | 625 { |
626 return m_isDrawable; | 626 return m_isDrawable; |
627 } | 627 } |
628 | 628 |
629 bool Layer::needMoreUpdates() | 629 bool Layer::needMoreUpdates() |
630 { | 630 { |
631 return false; | 631 return false; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
811 { | 811 { |
812 return 0; | 812 return 0; |
813 } | 813 } |
814 | 814 |
815 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) | 815 void sortLayers(std::vector<scoped_refptr<Layer> >::iterator, std::vector<scoped
_refptr<Layer> >::iterator, void*) |
816 { | 816 { |
817 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. | 817 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort Layers. |
818 } | 818 } |
819 | 819 |
820 } // namespace cc | 820 } // namespace cc |
OLD | NEW |