OLD | NEW |
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 #include "SkStrokeRec.h" |
18 | 18 |
19 class GrClip; | 19 class GrClip; |
20 class GrContext; | |
21 class GrDrawContext; | 20 class GrDrawContext; |
22 class GrPaint; | 21 class GrPaint; |
23 class GrRenderTarget; | 22 class GrRenderTarget; |
24 class GrTextureProvider; | 23 class GrTextureProvider; |
25 class SkBitmap; | 24 class SkBitmap; |
26 class SkBlitter; | 25 class SkBlitter; |
27 class SkCachedData; | 26 class SkCachedData; |
28 class SkMatrix; | 27 class SkMatrix; |
29 class SkPath; | 28 class SkPath; |
30 class SkRasterClip; | 29 class SkRasterClip; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
116 GrDrawContext* drawContext, | 115 GrDrawContext* drawContext, |
117 GrPaint* grp, | 116 GrPaint* grp, |
118 const GrClip&, | 117 const GrClip&, |
119 const SkMatrix& viewMatrix, | 118 const SkMatrix& viewMatrix, |
120 const SkStrokeRec& strokeRec, | 119 const SkStrokeRec& strokeRec, |
121 const SkPath& path) const; | 120 const SkPath& path) const; |
122 /** | 121 /** |
123 * Try to directly render a rounded rect mask filter into the target. Retu
rns | 122 * Try to directly render a rounded rect mask filter into the target. Retu
rns |
124 * true if drawing was successful. | 123 * true if drawing was successful. |
125 */ | 124 */ |
126 virtual bool directFilterRRectMaskGPU(GrContext*, | 125 virtual bool directFilterRRectMaskGPU(GrTextureProvider* texProvider, |
127 GrDrawContext* drawContext, | 126 GrDrawContext* drawContext, |
128 GrPaint* grp, | 127 GrPaint* grp, |
129 const GrClip&, | 128 const GrClip&, |
130 const SkMatrix& viewMatrix, | 129 const SkMatrix& viewMatrix, |
131 const SkStrokeRec& strokeRec, | 130 const SkStrokeRec& strokeRec, |
132 const SkRRect& rrect) const; | 131 const SkRRect& rrect) const; |
133 | 132 |
134 /** | 133 /** |
135 * This function is used to implement filters that require an explicit src m
ask. It should only | 134 * This function is used to implement filters that require an explicit src m
ask. It should only |
136 * be called if canFilterMaskGPU returned true and the maskRect param should
be the output from | 135 * be called if canFilterMaskGPU returned true and the maskRect param should
be the output from |
(...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
233 mask and then call filterMask(). If this returns true, the specified blitte
r will be called | 232 mask and then call filterMask(). If this returns true, the specified blitte
r will be called |
234 to render that mask. Returns false if filterMask() returned false. | 233 to render that mask. Returns false if filterMask() returned false. |
235 */ | 234 */ |
236 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, | 235 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, |
237 SkBlitter*) const; | 236 SkBlitter*) const; |
238 | 237 |
239 typedef SkFlattenable INHERITED; | 238 typedef SkFlattenable INHERITED; |
240 }; | 239 }; |
241 | 240 |
242 #endif | 241 #endif |
OLD | NEW |