| 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 576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 587 if (replicaLayer()) | 587 if (replicaLayer()) |
| 588 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); | 588 replicaLayer()->pushPropertiesTo(layer->replicaLayer()); |
| 589 | 589 |
| 590 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); | 590 m_layerAnimationController->pushAnimationUpdatesTo(layer->layerAnimationCont
roller()); |
| 591 | 591 |
| 592 // Reset any state that should be cleared for the next update. | 592 // Reset any state that should be cleared for the next update. |
| 593 m_stackingOrderChanged = false; | 593 m_stackingOrderChanged = false; |
| 594 m_updateRect = FloatRect(); | 594 m_updateRect = FloatRect(); |
| 595 } | 595 } |
| 596 | 596 |
| 597 PassOwnPtr<CCLayerImpl> LayerChromium::createCCLayerImpl() | 597 scoped_ptr<CCLayerImpl> LayerChromium::createCCLayerImpl() |
| 598 { | 598 { |
| 599 return CCLayerImpl::create(m_layerId); | 599 return CCLayerImpl::create(m_layerId); |
| 600 } | 600 } |
| 601 | 601 |
| 602 bool LayerChromium::drawsContent() const | 602 bool LayerChromium::drawsContent() const |
| 603 { | 603 { |
| 604 return m_isDrawable; | 604 return m_isDrawable; |
| 605 } | 605 } |
| 606 | 606 |
| 607 bool LayerChromium::needMoreUpdates() | 607 bool LayerChromium::needMoreUpdates() |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 790 return 0; | 790 return 0; |
| 791 } | 791 } |
| 792 | 792 |
| 793 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*) | 793 void sortLayers(std::vector<scoped_refptr<LayerChromium> >::iterator, std::vecto
r<scoped_refptr<LayerChromium> >::iterator, void*) |
| 794 { | 794 { |
| 795 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. | 795 // Currently we don't use z-order to decide what to paint, so there's no nee
d to actually sort LayerChromiums. |
| 796 } | 796 } |
| 797 | 797 |
| 798 } | 798 } |
| 799 #endif // USE(ACCELERATED_COMPOSITING) | 799 #endif // USE(ACCELERATED_COMPOSITING) |
| OLD | NEW |