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

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

Issue 23021015: Initial error handling code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Integrating readFoo changes Created 7 years, 2 months 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
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 148 matching lines...) Expand 10 before | Expand all | Expand 10 after
159 * offset access to the input images, and should also be added to the 159 * offset access to the input images, and should also be added to the
160 * "offset" parameter in onFilterImage and filterImageGPU(). (The latter 160 * "offset" parameter in onFilterImage and filterImageGPU(). (The latter
161 * ensures that the resulting buffer is drawn in the correct location.) 161 * ensures that the resulting buffer is drawn in the correct location.)
162 */ 162 */
163 #ifdef SK_CROP_RECT_IS_INT 163 #ifdef SK_CROP_RECT_IS_INT
164 bool cropRectIsSet() const { return !fCropRect.isLargest(); } 164 bool cropRectIsSet() const { return !fCropRect.isLargest(); }
165 #else 165 #else
166 bool cropRectIsSet() const { return fCropRect.isSet(); } 166 bool cropRectIsSet() const { return fCropRect.isSet(); }
167 #endif 167 #endif
168 168
169 SK_DEFINE_FLATTENABLE_EFFECT_TYPE(ImageFilter)
170
169 protected: 171 protected:
170 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRe ct = NULL); 172 SkImageFilter(int inputCount, SkImageFilter** inputs, const CropRect* cropRe ct = NULL);
171 173
172 // Convenience constructor for 1-input filters. 174 // Convenience constructor for 1-input filters.
173 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL ); 175 explicit SkImageFilter(SkImageFilter* input, const CropRect* cropRect = NULL );
174 176
175 // Convenience constructor for 2-input filters. 177 // Convenience constructor for 2-input filters.
176 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL); 178 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const CropRect* cropRect = NULL);
177 179
178 virtual ~SkImageFilter(); 180 virtual ~SkImageFilter();
(...skipping 14 matching lines...) Expand all
193 bool applyCropRect(SkIRect* rect, const SkMatrix& matrix) const; 195 bool applyCropRect(SkIRect* rect, const SkMatrix& matrix) const;
194 196
195 private: 197 private:
196 typedef SkFlattenable INHERITED; 198 typedef SkFlattenable INHERITED;
197 int fInputCount; 199 int fInputCount;
198 SkImageFilter** fInputs; 200 SkImageFilter** fInputs;
199 CropRect fCropRect; 201 CropRect fCropRect;
200 }; 202 };
201 203
202 #endif 204 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698