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

Side by Side Diff: src/gpu/GrOrderedSet.h

Issue 226183018: SkNonCopyable should be used with private inheritance. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: name resolution 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
« no previous file with comments | « src/gpu/GrClipMaskManager.h ('k') | src/gpu/GrPlotMgr.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 /* 1 /*
2 * Copyright 2014 Google Inc. 2 * Copyright 2014 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef GrOrderedSet_DEFINED 8 #ifndef GrOrderedSet_DEFINED
9 #define GrOrderedSet_DEFINED 9 #define GrOrderedSet_DEFINED
10 10
11 #include "GrRedBlackTree.h" 11 #include "GrRedBlackTree.h"
12 12
13 template <typename T, typename C = GrLess<T> > 13 template <typename T, typename C = GrLess<T> >
14 class GrOrderedSet : public SkNoncopyable { 14 class GrOrderedSet : SkNoncopyable {
15 public: 15 public:
16 /** 16 /**
17 * Creates an empty set 17 * Creates an empty set
18 */ 18 */
19 GrOrderedSet() : fComp() {} 19 GrOrderedSet() : fComp() {}
20 ~GrOrderedSet() {} 20 ~GrOrderedSet() {}
21 21
22 class Iter; 22 class Iter;
23 23
24 /** 24 /**
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 } 145 }
146 146
147 template <typename T, typename C> 147 template <typename T, typename C>
148 void GrOrderedSet<T,C>::remove(const typename GrOrderedSet<T,C>::Iter& iter) { 148 void GrOrderedSet<T,C>::remove(const typename GrOrderedSet<T,C>::Iter& iter) {
149 if (this->end() != iter) { 149 if (this->end() != iter) {
150 fRBTree.remove(iter.getTreeIter()); 150 fRBTree.remove(iter.getTreeIter());
151 } 151 }
152 } 152 }
153 153
154 #endif 154 #endif
OLDNEW
« no previous file with comments | « src/gpu/GrClipMaskManager.h ('k') | src/gpu/GrPlotMgr.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698