aboutsummaryrefslogtreecommitdiffhomepage
path: root/include/core/SkImageFilter.h
diff options
context:
space:
mode:
authorGravatar senorblanco <senorblanco@chromium.org>2016-05-19 14:50:29 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2016-05-19 14:50:29 -0700
commit5878dbdf1b5d86201d299c6e07d53e35048713c7 (patch)
tree1037af4fb13bda913320414ebd901b8c168a835d /include/core/SkImageFilter.h
parent57a69dc013b7105a6a535e84588f9aa95397b2ee (diff)
Image filters: implement SkImage::makeWithFilter().
This API provides a way to directly filter a subregion of an SkImage (usually texture-backed), and returns an SkImage which may include extra padding, along with a size to indicate the active region. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1964043002 Review-Url: https://codereview.chromium.org/1964043002
Diffstat (limited to 'include/core/SkImageFilter.h')
-rw-r--r--include/core/SkImageFilter.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index aa9648eb3c..8a1bc4071a 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -93,7 +93,7 @@ public:
};
/**
- * Request a new (result) image to be created from the src image.
+ * Request a new filtered image to be created from the src image.
*
* The context contains the environment in which the filter is occurring.
* It includes the clip bounds, CTM and cache.
@@ -101,8 +101,9 @@ public:
* 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, return null, in which case
- * the offset parameters will be ignored by the caller.
+ * If the result image cannot be created, or the result would be
+ * transparent black, return null, in which case the offset parameter
+ * should be ignored by the caller.
*
* TODO: Right now the imagefilters sometimes return empty result bitmaps/
* specialimages. That doesn't seem quite right.