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

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

Issue 22799007: I'm investigating how to make the IPC transfer a bit more secure on the (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Windows error fix Created 7 years, 3 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
« no previous file with comments | « include/core/SkFlattenableSerialization.h ('k') | include/effects/SkLightingImageFilter.h » ('j') | no next file with comments »
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 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 // Convenience constructor for 1-input filters. 144 // Convenience constructor for 1-input filters.
145 explicit SkImageFilter(SkImageFilter* input, const SkIRect* cropRect = NULL) ; 145 explicit SkImageFilter(SkImageFilter* input, const SkIRect* cropRect = NULL) ;
146 146
147 // Convenience constructor for 2-input filters. 147 // Convenience constructor for 2-input filters.
148 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* c ropRect = NULL); 148 SkImageFilter(SkImageFilter* input1, SkImageFilter* input2, const SkIRect* c ropRect = NULL);
149 149
150 virtual ~SkImageFilter(); 150 virtual ~SkImageFilter();
151 151
152 explicit SkImageFilter(SkFlattenableReadBuffer& rb); 152 explicit SkImageFilter(SkFlattenableReadBuffer& rb);
153 153
154 virtual bool isA(Type type) const { return (IMAGE_FILTER == type) || INHERIT ED::isA(type); }
155
154 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE; 156 virtual void flatten(SkFlattenableWriteBuffer& wb) const SK_OVERRIDE;
155 157
156 // Default impl returns false 158 // Default impl returns false
157 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&, 159 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const SkMatrix&,
158 SkBitmap* result, SkIPoint* offset); 160 SkBitmap* result, SkIPoint* offset);
159 // Default impl copies src into dst and returns true 161 // Default impl copies src into dst and returns true
160 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*); 162 virtual bool onFilterBounds(const SkIRect&, const SkMatrix&, SkIRect*);
161 163
162 // Sets rect to the intersection of rect and the crop rect. If there 164 // Sets rect to the intersection of rect and the crop rect. If there
163 // is no overlap, returns false and leaves rect unchanged. 165 // is no overlap, returns false and leaves rect unchanged.
164 bool applyCropRect(SkIRect* rect) const; 166 bool applyCropRect(SkIRect* rect) const;
165 167
166 private: 168 private:
167 typedef SkFlattenable INHERITED; 169 typedef SkFlattenable INHERITED;
168 int fInputCount; 170 int fInputCount;
169 SkImageFilter** fInputs; 171 SkImageFilter** fInputs;
170 SkIRect fCropRect; 172 SkIRect fCropRect;
171 }; 173 };
172 174
173 #endif 175 #endif
OLDNEW
« no previous file with comments | « include/core/SkFlattenableSerialization.h ('k') | include/effects/SkLightingImageFilter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698