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

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

Issue 2503283002: cc: Cleanup class/struct forward declarations (Closed)
Patch Set: Add missing fwd class decl in blimp_embedder_compositor.h Created 4 years, 1 month 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
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/nine_patch_layer.h » ('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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_LIST_ITERATOR_H_ 5 #ifndef CC_LAYERS_LAYER_LIST_ITERATOR_H_
6 #define CC_LAYERS_LAYER_LIST_ITERATOR_H_ 6 #define CC_LAYERS_LAYER_LIST_ITERATOR_H_
7 7
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <vector> 9 #include <vector>
10 10
11 #include "cc/base/cc_export.h" 11 #include "cc/base/cc_export.h"
12 12
13 namespace cc { 13 namespace cc {
14 14
15 class Layer;
16 class LayerImpl; 15 class LayerImpl;
17 16
18 // Unlike LayerIterator and friends, these iterators are not intended to permit 17 // Unlike LayerIterator and friends, these iterators are not intended to permit
19 // traversing the RSLL. Rather, they visit a collection of LayerImpls in 18 // traversing the RSLL. Rather, they visit a collection of LayerImpls in
20 // stacking order. All recursive walks over the LayerImpl tree should be 19 // stacking order. All recursive walks over the LayerImpl tree should be
21 // switched to use these classes instead as the concept of a LayerImpl tree is 20 // switched to use these classes instead as the concept of a LayerImpl tree is
22 // deprecated. 21 // deprecated.
23 template <typename LayerType> 22 template <typename LayerType>
24 class CC_EXPORT LayerListIterator { 23 class CC_EXPORT LayerListIterator {
25 public: 24 public:
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 58
60 private: 59 private:
61 void DescendToRightmostInSubtree(); 60 void DescendToRightmostInSubtree();
62 LayerType* current_layer() { return this->current_layer_; } 61 LayerType* current_layer() { return this->current_layer_; }
63 std::vector<size_t>& list_indices() { return this->list_indices_; } 62 std::vector<size_t>& list_indices() { return this->list_indices_; }
64 }; 63 };
65 64
66 } // namespace cc 65 } // namespace cc
67 66
68 #endif // CC_LAYERS_LAYER_LIST_ITERATOR_H_ 67 #endif // CC_LAYERS_LAYER_LIST_ITERATOR_H_
OLDNEW
« no previous file with comments | « cc/layers/layer_impl.h ('k') | cc/layers/nine_patch_layer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698