| 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 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 133 /** | 133 /** |
| 134 * 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 |
| 135 * 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 |
| 136 * 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 |
| 137 * texture and overwrite its contents. When true it is also legal to return
src as the result. | 137 * texture and overwrite its contents. When true it is also legal to return
src as the result. |
| 138 * Implementations are free to get the GrContext from the src texture in ord
er to create | 138 * Implementations are free to get the GrContext from the src texture in ord
er to create |
| 139 * additional textures and perform multiple passes. | 139 * additional textures and perform multiple passes. |
| 140 */ | 140 */ |
| 141 virtual bool filterMaskGPU(GrTexture* src, | 141 virtual bool filterMaskGPU(GrTexture* src, |
| 142 const SkMatrix& ctm, | 142 const SkMatrix& ctm, |
| 143 const SkRect& maskRect, | 143 const SkIRect& maskRect, |
| 144 GrTexture** result, | 144 GrTexture** result, |
| 145 bool canOverwriteSrc) const; | 145 bool canOverwriteSrc) const; |
| 146 #endif | 146 #endif |
| 147 | 147 |
| 148 /** | 148 /** |
| 149 * The fast bounds function is used to enable the paint to be culled early | 149 * The fast bounds function is used to enable the paint to be culled early |
| 150 * in the drawing pipeline. This function accepts the current bounds of the | 150 * in the drawing pipeline. This function accepts the current bounds of the |
| 151 * paint as its src param and the filter adjust those bounds using its | 151 * paint as its src param and the filter adjust those bounds using its |
| 152 * current mask and returns the result using the dest param. Callers are | 152 * current mask and returns the result using the dest param. Callers are |
| 153 * allowed to provide the same struct for both src and dest so each | 153 * allowed to provide the same struct for both src and dest so each |
| (...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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*) const; | 238 SkBlitter*) const; |
| 239 | 239 |
| 240 typedef SkFlattenable INHERITED; | 240 typedef SkFlattenable INHERITED; |
| 241 }; | 241 }; |
| 242 | 242 |
| 243 #endif | 243 #endif |
| OLD | NEW |