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

Side by Side Diff: include/core/SkDrawLooper.h

Issue 1217573002: remove SkInstCnt (Closed) Base URL: https://skia.googlesource.com/skia@master
Patch Set: Created 5 years, 5 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/SkDrawFilter.h ('k') | include/core/SkFlattenable.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 12 matching lines...) Expand all
23 /** \class SkDrawLooper 23 /** \class SkDrawLooper
24 Subclasses of SkDrawLooper can be attached to a SkPaint. Where they are, 24 Subclasses of SkDrawLooper can be attached to a SkPaint. Where they are,
25 and something is drawn to a canvas with that paint, the looper subclass will 25 and something is drawn to a canvas with that paint, the looper subclass will
26 be called, allowing it to modify the canvas and/or paint for that draw call. 26 be called, allowing it to modify the canvas and/or paint for that draw call.
27 More than that, via the next() method, the looper can modify the draw to be 27 More than that, via the next() method, the looper can modify the draw to be
28 invoked multiple times (hence the name loop-er), allow it to perform effects 28 invoked multiple times (hence the name loop-er), allow it to perform effects
29 like shadows or frame/fills, that require more than one pass. 29 like shadows or frame/fills, that require more than one pass.
30 */ 30 */
31 class SK_API SkDrawLooper : public SkFlattenable { 31 class SK_API SkDrawLooper : public SkFlattenable {
32 public: 32 public:
33 SK_DECLARE_INST_COUNT(SkDrawLooper)
34
35 /** 33 /**
36 * Holds state during a draw. Users call next() until it returns false. 34 * Holds state during a draw. Users call next() until it returns false.
37 * 35 *
38 * Subclasses of SkDrawLooper should create a subclass of this object to 36 * Subclasses of SkDrawLooper should create a subclass of this object to
39 * hold state specific to their subclass. 37 * hold state specific to their subclass.
40 */ 38 */
41 class SK_API Context : ::SkNoncopyable { 39 class SK_API Context : ::SkNoncopyable {
42 public: 40 public:
43 Context() {} 41 Context() {}
44 virtual ~Context() {} 42 virtual ~Context() {}
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after
112 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper) 110 SK_DEFINE_FLATTENABLE_TYPE(SkDrawLooper)
113 111
114 protected: 112 protected:
115 SkDrawLooper() {} 113 SkDrawLooper() {}
116 114
117 private: 115 private:
118 typedef SkFlattenable INHERITED; 116 typedef SkFlattenable INHERITED;
119 }; 117 };
120 118
121 #endif 119 #endif
OLDNEW
« no previous file with comments | « include/core/SkDrawFilter.h ('k') | include/core/SkFlattenable.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698