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

Side by Side Diff: include/core/SkMaskFilter.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/SkMallocPixelRef.h ('k') | include/core/SkPath.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 2006 The Android Open Source Project 3 * Copyright 2006 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 SkMaskFilter_DEFINED 10 #ifndef SkMaskFilter_DEFINED
(...skipping 23 matching lines...) Expand all
34 an alpha-channel mask before drawing it. A subclass of SkMaskFilter may be 34 an alpha-channel mask before drawing it. A subclass of SkMaskFilter may be
35 installed into a SkPaint. Once there, each time a primitive is drawn, it 35 installed into a SkPaint. Once there, each time a primitive is drawn, it
36 is first scan converted into a SkMask::kA8_Format mask, and handed to the 36 is first scan converted into a SkMask::kA8_Format mask, and handed to the
37 filter, calling its filterMask() method. If this returns true, then the 37 filter, calling its filterMask() method. If this returns true, then the
38 new mask is used to render into the device. 38 new mask is used to render into the device.
39 39
40 Blur and emboss are implemented as subclasses of SkMaskFilter. 40 Blur and emboss are implemented as subclasses of SkMaskFilter.
41 */ 41 */
42 class SK_API SkMaskFilter : public SkFlattenable { 42 class SK_API SkMaskFilter : public SkFlattenable {
43 public: 43 public:
44 SK_DECLARE_INST_COUNT(SkMaskFilter)
45
46 /** Returns the format of the resulting mask that this subclass will return 44 /** Returns the format of the resulting mask that this subclass will return
47 when its filterMask() method is called. 45 when its filterMask() method is called.
48 */ 46 */
49 virtual SkMask::Format getFormat() const = 0; 47 virtual SkMask::Format getFormat() const = 0;
50 48
51 /** Create a new mask by filter the src mask. 49 /** Create a new mask by filter the src mask.
52 If src.fImage == null, then do not allocate or create the dst image 50 If src.fImage == null, then do not allocate or create the dst image
53 but do fill out the other fields in dstMask. 51 but do fill out the other fields in dstMask.
54 If you do allocate a dst image, use SkMask::AllocImage() 52 If you do allocate a dst image, use SkMask::AllocImage()
55 If this returns false, dst mask is ignored. 53 If this returns false, dst mask is ignored.
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
223 mask and then call filterMask(). If this returns true, the specified blitte r will be called 221 mask and then call filterMask(). If this returns true, the specified blitte r will be called
224 to render that mask. Returns false if filterMask() returned false. 222 to render that mask. Returns false if filterMask() returned false.
225 */ 223 */
226 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 224 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
227 SkBlitter*, SkPaint::Style style) const; 225 SkBlitter*, SkPaint::Style style) const;
228 226
229 typedef SkFlattenable INHERITED; 227 typedef SkFlattenable INHERITED;
230 }; 228 };
231 229
232 #endif 230 #endif
OLDNEW
« no previous file with comments | « include/core/SkMallocPixelRef.h ('k') | include/core/SkPath.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698