aboutsummaryrefslogtreecommitdiffhomepage
path: root/include
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-04 20:07:47 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-12-04 20:07:47 +0000
commitc84728d72a47415929464c5cf062300d86a91246 (patch)
treef58b4fe50ae82e23fee49e879e8490ef2957f617 /include
parenta0b266d8170211d9f2a6f90ba9c889f0c1b6d1b6 (diff)
Changed maxInputCount for exact inputCount
Processing still had issue when the number of inputs was 0, so I changed my previous fix from a maximum input count to an exact input count. -1 is used when the input count isn't fixed (but still has to be a non-negative number). BUG= R=senorblanco@chromium.org, reed@google.com, sugoi@google.com, bsalomon@google.com Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/100803004 git-svn-id: http://skia.googlecode.com/svn/trunk@12492 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'include')
-rw-r--r--include/core/SkImageFilter.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/include/core/SkImageFilter.h b/include/core/SkImageFilter.h
index 1e9f72eb30..4c372a413d 100644
--- a/include/core/SkImageFilter.h
+++ b/include/core/SkImageFilter.h
@@ -156,7 +156,14 @@ protected:
virtual ~SkImageFilter();
- explicit SkImageFilter(int maxInputCount, SkFlattenableReadBuffer& rb);
+ /**
+ * Constructs a new SkImageFilter read from an SkFlattenableReadBuffer object.
+ *
+ * @param inputCount The exact number of inputs expected for this SkImageFilter object.
+ * -1 can be used if the filter accepts any number of inputs.
+ * @param rb SkFlattenableReadBuffer object from which the SkImageFilter is read.
+ */
+ explicit SkImageFilter(int inputCount, SkFlattenableReadBuffer& rb);
virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE;