Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(523)

Side by Side Diff: cc/LayerChromium.cpp

Issue 11076013: [cc] Store CCLayerImpls as scoped_ptrs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address review comments Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/LayerChromiumTest.cpp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « cc/LayerChromium.h ('k') | cc/LayerChromiumTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698