Chromium Code Reviews| Index: include/core/SkImage.h |
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
| index 31985a6c6936a1b2918f7809d57a1c331a20841b..151ee11dde72a7ed1d6e604a620a8f1b87e47523 100644 |
| --- a/include/core/SkImage.h |
| +++ b/include/core/SkImage.h |
| @@ -320,6 +320,27 @@ public: |
| */ |
| sk_sp<SkImage> makeTextureImage(GrContext*) const; |
| + /** |
| + * Apply a given image filter to this image, and return the filtered result. |
| + * |
| + * The subset represents the active portion of this image. The return value is similarly an |
|
robertphillips
2016/05/19 21:14:44
Skimage -> SkImage ?
Stephen White
2016/05/19 21:27:43
Done.
|
| + * Skimage, with an active subset (outSubset). This is usually used with texture-backed |
| + * images, where the texture may be approx-match and thus larger than the required size. |
| + * |
| + * clipBounds constrains the device-space extent of the image which may be produced to the |
| + * given rect. |
| + * |
| + * offset is the amount to translate the resulting image relative to the src when it is drawn. |
| + * This is an out-param. |
| + * |
| + * If the result image cannot be created, or the result would be transparent black, null |
| + * is returned, in which case the offset and outSubset parameters should be ignored by the |
| + * caller. |
| + */ |
| + sk_sp<SkImage> makeWithFilter(const SkImageFilter* filter, const SkIRect& subset, |
| + const SkIRect& clipBounds, SkIRect* outSubset, |
| + SkIPoint* offset) const; |
| + |
| /** Drawing params for which a deferred texture image data should be optimized. */ |
| struct DeferredTextureImageUsageParams { |
| SkMatrix fMatrix; |