Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(196)

Side by Side Diff: include/core/SkImageFilter.h

Issue 100803004: Changed maxInputCount for exact inputCount (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | src/animator/SkScript.cpp » ('j') | src/animator/SkScript.cpp » ('J')
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright 2011 Google Inc. 2 * Copyright 2011 Google Inc.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license that can be 4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file. 5 * found in the LICENSE file.
6 */ 6 */
7 7
8 #ifndef SkImageFilter_DEFINED 8 #ifndef SkImageFilter_DEFINED
9 #define SkImageFilter_DEFINED 9 #define SkImageFilter_DEFINED
10 10
(...skipping 138 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRe ct = NULL); 149 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRe ct = NULL);
150 150
151 // Convenience constructor for 1-input filters. 151 // Convenience constructor for 1-input filters.
152 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL ); 152 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL );
153 153
154 // Convenience constructor for 2-input filters. 154 // Convenience constructor for 2-input filters.
155 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL); 155 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL);
156 156
157 virtual ~SkImageFilter(); 157 virtual ~SkImageFilter();
158 158
159 explicit SkImageFilter(int maxInputCount, SkFlattenableReadBuffer& rb); 159 explicit SkImageFilter(int inputCount, SkFlattenableReadBuffer& rb);
Stephen White 2013/12/03 16:22:36 Please document the -1 special case here.
sugoi 2013/12/03 16:30:52 Done.
160 160
161 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE; 161 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE;
162 162
163 // Default impl returns false 163 // Default impl returns false
164 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 164 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
165 SkBitmap* result, SkIPoint* offset); 165 SkBitmap* result, SkIPoint* offset);
166 // Default impl copies src into dst and returns true 166 // Default impl copies src into dst and returns true
167 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*); 167 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*);
168 168
169 // Applies "matrix" to the crop rect, and sets "rect" to the intersection of 169 // Applies "matrix" to the crop rect, and sets "rect" to the intersection of
(...skipping 22 matching lines...) Expand all
192 const SkIRect& bounds) const; 192 const SkIRect& bounds) const;
193 193
194 private: 194 private:
195 typedef SkFlattenable INHERITED; 195 typedef SkFlattenable INHERITED;
196 int fInputCount; 196 int fInputCount;
197 SkImageFilter** fInputs; 197 SkImageFilter** fInputs;
198 CropRect fCropRect; 198 CropRect fCropRect;
199 }; 199 };
200 200
201 #endif 201 #endif
OLDNEW
« no previous file with comments | « no previous file | src/animator/SkScript.cpp » ('j') | src/animator/SkScript.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698