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

Side by Side Diff: cc/layers/layer_lists.h

Issue 250803013: Don't clear render surfaces unnecessarily. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 #ifndef CC_LAYERS_LAYER_LISTS_H_ 5 #ifndef CC_LAYERS_LAYER_LISTS_H_
6 #define CC_LAYERS_LAYER_LISTS_H_ 6 #define CC_LAYERS_LAYER_LISTS_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/ref_counted.h" 10 #include "base/memory/ref_counted.h"
(...skipping 20 matching lines...) Expand all
31 Layer* back(); 31 Layer* back();
32 size_t size() const; 32 size_t size() const;
33 bool empty() const { return size() == 0u; } 33 bool empty() const { return size() == 0u; }
34 scoped_refptr<Layer>& operator[](size_t i); 34 scoped_refptr<Layer>& operator[](size_t i);
35 const scoped_refptr<Layer>& operator[](size_t i) const; 35 const scoped_refptr<Layer>& operator[](size_t i) const;
36 LayerList::iterator begin(); 36 LayerList::iterator begin();
37 LayerList::iterator end(); 37 LayerList::iterator end();
38 LayerList::const_iterator begin() const; 38 LayerList::const_iterator begin() const;
39 LayerList::const_iterator end() const; 39 LayerList::const_iterator end() const;
40 void clear(); 40 void clear();
41 LayerList* layer_list() { return &list_; }
danakj 2014/04/25 22:59:24 Can we call this AsLayerList() and have it return
Ian Vollick 2014/04/25 23:14:39 Done.
42 const LayerList* layer_list() const { return &list_; }
41 43
42 private: 44 private:
43 LayerList list_; 45 LayerList list_;
44 46
45 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceLayerList); 47 DISALLOW_COPY_AND_ASSIGN(RenderSurfaceLayerList);
46 }; 48 };
47 49
48 } // namespace cc 50 } // namespace cc
49 51
50 #endif // CC_LAYERS_LAYER_LISTS_H_ 52 #endif // CC_LAYERS_LAYER_LISTS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698