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 "config.h" | 5 #include "config.h" |
6 | 6 |
7 #if USE(ACCELERATED_COMPOSITING) | 7 #if USE(ACCELERATED_COMPOSITING) |
8 #include "LayerChromium.h" | 8 #include "LayerChromium.h" |
9 | 9 |
10 #include "CCActiveAnimation.h" | 10 #include "CCActiveAnimation.h" |
(...skipping 568 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
579 if (replicaLayer()) | 579 if (replicaLayer()) |
580 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); | 580 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); |
581 | 581 |
582 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); | 582 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); |
583 | 583 |
584 // Reset any state that should be cleared for the next update. | 584 // Reset any state that should be cleared for the next update. |
585 m_stackingOrderChanged = false; | 585 m_stackingOrderChanged = false; |
586 m_updateRect = FloatRect(); | 586 m_updateRect = FloatRect(); |
587 } | 587 } |
588 | 588 |
589 PassOwnPtr<CCLayerImpl> LayerChromium::createCCLayerImpl() | 589 scoped_ptr<CCLayerImpl> LayerChromium::createCCLayerImpl() |
590 { | 590 { |
591 return CCLayerImpl::create(m_layerId); | 591 return CCLayerImpl::create(m_layerId); |
592 } | 592 } |
593 | 593 |
594 bool LayerChromium::drawsContent() const | 594 bool LayerChromium::drawsContent() const |
595 { | 595 { |
596 return m_isDrawable; | 596 return m_isDrawable; |
597 } | 597 } |
598 | 598 |
599 bool LayerChromium::needMoreUpdates() | 599 bool LayerChromium::needMoreUpdates() |
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 return 0; | 782 return 0; |
783 } | 783 } |
784 | 784 |
785 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*) | 785 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*) |
786 { | 786 { |
787 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. | 787 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. |
788 } | 788 } |
789 | 789 |
790 } | 790 } |
791 #endif // USE(ACCELERATED_COMPOSITING) | 791 #endif // USE(ACCELERATED_COMPOSITING) |
OLD | NEW |