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

Side by Side Diff: include/core/SkDrawLooper.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 | « include/core/SkBitmap.h ('k') | include/core/SkImageDecoder.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 /* 2 /*
3 * Copyright 2011 The Android Open Source Project 3 * Copyright 2011 The Android Open Source Project
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 9
10 #ifndef SkDrawLooper_DEFINED 10 #ifndef SkDrawLooper_DEFINED
(...skipping 17 matching lines...) Expand all
28 class SK_API SkDrawLooper : public SkFlattenable { 28 class SK_API SkDrawLooper : public SkFlattenable {
29 public: 29 public:
30 SK_DECLARE_INST_COUNT(SkDrawLooper) 30 SK_DECLARE_INST_COUNT(SkDrawLooper)
31 31
32 /** 32 /**
33 * Holds state during a draw. Users call next() until it returns false. 33 * Holds state during a draw. Users call next() until it returns false.
34 * 34 *
35 * Subclasses of SkDrawLooper should create a subclass of this object to 35 * Subclasses of SkDrawLooper should create a subclass of this object to
36 * hold state specific to their subclass. 36 * hold state specific to their subclass.
37 */ 37 */
38 class SK_API Context : public SkNoncopyable { 38 class SK_API Context : ::SkNoncopyable {
39 public: 39 public:
40 Context() {} 40 Context() {}
41 virtual ~Context() {} 41 virtual ~Context() {}
42 42
43 /** 43 /**
44 * Called in a loop on objects returned by SkDrawLooper::createContext( ). 44 * Called in a loop on objects returned by SkDrawLooper::createContext( ).
45 * Each time true is returned, the object is drawn (possibly with a mod ified 45 * Each time true is returned, the object is drawn (possibly with a mod ified
46 * canvas and/or paint). When false is finally returned, drawing for th e object 46 * canvas and/or paint). When false is finally returned, drawing for th e object
47 * stops. 47 * stops.
48 * 48 *
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
93 93
94 protected: 94 protected:
95 SkDrawLooper() {} 95 SkDrawLooper() {}
96 SkDrawLooper(SkReadBuffer& buffer) : INHERITED(buffer) {} 96 SkDrawLooper(SkReadBuffer& buffer) : INHERITED(buffer) {}
97 97
98 private: 98 private:
99 typedef SkFlattenable INHERITED; 99 typedef SkFlattenable INHERITED;
100 }; 100 };
101 101
102 #endif 102 #endif
OLDNEW
« no previous file with comments | « include/core/SkBitmap.h ('k') | include/core/SkImageDecoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698