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 |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
106 const SkIRect& clipBounds, | 106 const SkIRect& clipBounds, |
107 const SkMatrix& ctm, | 107 const SkMatrix& ctm, |
108 SkRect* maskRect) const; | 108 SkRect* maskRect) const; |
109 | 109 |
110 /** | 110 /** |
111 * Try to directly render the mask filter into the target. Returns | 111 * Try to directly render the mask filter into the target. Returns |
112 * true if drawing was successful. | 112 * true if drawing was successful. |
113 */ | 113 */ |
114 virtual bool directFilterMaskGPU(GrTextureProvider* texProvider, | 114 virtual bool directFilterMaskGPU(GrTextureProvider* texProvider, |
115 GrDrawContext* drawContext, | 115 GrDrawContext* drawContext, |
116 GrRenderTarget* rt, | |
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(GrTextureProvider* texProvider, | 125 virtual bool directFilterRRectMaskGPU(GrTextureProvider* texProvider, |
127 GrDrawContext* drawContext, | 126 GrDrawContext* drawContext, |
128 GrRenderTarget* rt, | |
129 GrPaint* grp, | 127 GrPaint* grp, |
130 const GrClip&, | 128 const GrClip&, |
131 const SkMatrix& viewMatrix, | 129 const SkMatrix& viewMatrix, |
132 const SkStrokeRec& strokeRec, | 130 const SkStrokeRec& strokeRec, |
133 const SkRRect& rrect) const; | 131 const SkRRect& rrect) const; |
134 | 132 |
135 /** | 133 /** |
136 * 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 |
137 * 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 |
138 * that call. canOverwriteSrc indicates whether the implementation may treat
src as a scratch | 136 * that call. canOverwriteSrc indicates whether the implementation may treat
src as a scratch |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
238 mask and then call filterMask(). If this returns true, the specified blitte
r will be called | 236 mask and then call filterMask(). If this returns true, the specified blitte
r will be called |
239 to render that mask. Returns false if filterMask() returned false. | 237 to render that mask. Returns false if filterMask() returned false. |
240 */ | 238 */ |
241 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, | 239 bool filterRRect(const SkRRect& devRRect, const SkMatrix& ctm, const SkRaste
rClip&, |
242 SkBlitter*, SkPaint::Style style) const; | 240 SkBlitter*, SkPaint::Style style) const; |
243 | 241 |
244 typedef SkFlattenable INHERITED; | 242 typedef SkFlattenable INHERITED; |
245 }; | 243 }; |
246 | 244 |
247 #endif | 245 #endif |
OLD | NEW |