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

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

Issue 1955633002: Take SkStrokeRec::InitStyle rather than SkPaint::Style in mask filter and DrawMask (Closed) Base URL: https://chromium.googlesource.com/skia.git@master
Patch Set: fix xps change Created 4 years, 7 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/SkDraw.h ('k') | src/core/SkDraw.cpp » ('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
11 #define SkMaskFilter_DEFINED 11 #define SkMaskFilter_DEFINED
12 12
13 #include "SkBlurTypes.h" 13 #include "SkBlurTypes.h"
14 #include "SkFlattenable.h" 14 #include "SkFlattenable.h"
15 #include "SkMask.h" 15 #include "SkMask.h"
16 #include "SkPaint.h" 16 #include "SkPaint.h"
17 #include "SkStrokeRec.h"
17 18
18 class GrClip; 19 class GrClip;
19 class GrDrawContext; 20 class GrDrawContext;
20 class GrPaint; 21 class GrPaint;
21 class GrRenderTarget; 22 class GrRenderTarget;
22 class GrTextureProvider; 23 class GrTextureProvider;
23 class SkBitmap; 24 class SkBitmap;
24 class SkBlitter; 25 class SkBlitter;
25 class SkCachedData; 26 class SkCachedData;
26 class SkMatrix; 27 class SkMatrix;
27 class SkPath; 28 class SkPath;
28 class SkRasterClip; 29 class SkRasterClip;
29 class SkRRect; 30 class SkRRect;
30 class SkStrokeRec;
31 31
32 /** \class SkMaskFilter 32 /** \class SkMaskFilter
33 33
34 SkMaskFilter is the base class for object that perform transformations on 34 SkMaskFilter is the base class for object that perform transformations on
35 an alpha-channel mask before drawing it. A subclass of SkMaskFilter may be 35 an alpha-channel mask before drawing it. A subclass of SkMaskFilter may be
36 installed into a SkPaint. Once there, each time a primitive is drawn, it 36 installed into a SkPaint. Once there, each time a primitive is drawn, it
37 is first scan converted into a SkMask::kA8_Format mask, and handed to the 37 is first scan converted into a SkMask::kA8_Format mask, and handed to the
38 filter, calling its filterMask() method. If this returns true, then the 38 filter, calling its filterMask() method. If this returns true, then the
39 new mask is used to render into the device. 39 new mask is used to render into the device.
40 40
(...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 221
222 private: 222 private:
223 friend class SkDraw; 223 friend class SkDraw;
224 224
225 /** Helper method that, given a path in device space, will rasterize it into a kA8_Format mask 225 /** Helper method that, given a path in device space, will rasterize it into a kA8_Format mask
226 and then call filterMask(). If this returns true, the specified blitter wil l be called 226 and then call filterMask(). If this returns true, the specified blitter wil l be called
227 to render that mask. Returns false if filterMask() returned false. 227 to render that mask. Returns false if filterMask() returned false.
228 This method is not exported to java. 228 This method is not exported to java.
229 */ 229 */
230 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterCl ip&, SkBlitter*, 230 bool filterPath(const SkPath& devPath, const SkMatrix& ctm, const SkRasterCl ip&, SkBlitter*,
231 SkPaint::Style) const; 231 SkStrokeRec::InitStyle) const;
232 232
233 /** Helper method that, given a roundRect in device space, will rasterize it into a kA8_Format 233 /** Helper method that, given a roundRect in device space, will rasterize it into a kA8_Format
234 mask and then call filterMask(). If this returns true, the specified blitte r will be called 234 mask and then call filterMask(). If this returns true, the specified blitte r will be called
235 to render that mask. Returns false if filterMask() returned false. 235 to render that mask. Returns false if filterMask() returned false.
236 */ 236 */
237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&, 237 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste rClip&,
238 SkBlitter*, SkPaint::Style style) const; 238 SkBlitter*) const;
239 239
240 typedef SkFlattenable INHERITED; 240 typedef SkFlattenable INHERITED;
241 }; 241 };
242 242
243 #endif 243 #endif
OLDNEW
« no previous file with comments | « include/core/SkDraw.h ('k') | src/core/SkDraw.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698