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

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

Issue 189913021: Implement support for a Context parameter in image filters (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Revert all but the Context changes. Created 6 years, 9 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 | « gm/imagefiltersgraph.cpp ('k') | include/core/SkDevice.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 /* 2 /*
3 * Copyright 2013 Google Inc. 3 * Copyright 2013 Google Inc.
4 * 4 *
5 * Use of this source code is governed by a BSD-style license that can be 5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file. 6 * found in the LICENSE file.
7 */ 7 */
8 8
9 #ifndef SkBitmapDevice_DEFINED 9 #ifndef SkBitmapDevice_DEFINED
10 #define SkBitmapDevice_DEFINED 10 #define SkBitmapDevice_DEFINED
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 */ 241 */
242 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE; 242 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE;
243 243
244 /** 244 /**
245 * Related (but not required) to canHandleImageFilter, this method returns 245 * Related (but not required) to canHandleImageFilter, this method returns
246 * true if the device could apply the filter to the src bitmap and return 246 * true if the device could apply the filter to the src bitmap and return
247 * the result (and updates offset as needed). 247 * the result (and updates offset as needed).
248 * If the device does not recognize or support this filter, 248 * If the device does not recognize or support this filter,
249 * it just returns false and leaves result and offset unchanged. 249 * it just returns false and leaves result and offset unchanged.
250 */ 250 */
251 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr ix&, 251 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkImag eFilter::Context&,
252 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE; 252 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE;
253 253
254 private: 254 private:
255 friend class SkCanvas; 255 friend class SkCanvas;
256 friend struct DeviceCM; //for setMatrixClip 256 friend struct DeviceCM; //for setMatrixClip
257 friend class SkDraw; 257 friend class SkDraw;
258 friend class SkDrawIter; 258 friend class SkDrawIter;
259 friend class SkDeviceFilteredPaint; 259 friend class SkDeviceFilteredPaint;
260 friend class SkDeviceImageFilterProxy; 260 friend class SkDeviceImageFilterProxy;
261 261
(...skipping 17 matching lines...) Expand all
279 279
280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE; 280 virtual SkSurface* newSurface(const SkImageInfo&) SK_OVERRIDE;
281 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE; 281 virtual const void* peekPixels(SkImageInfo*, size_t* rowBytes) SK_OVERRIDE;
282 282
283 SkBitmap fBitmap; 283 SkBitmap fBitmap;
284 284
285 typedef SkBaseDevice INHERITED; 285 typedef SkBaseDevice INHERITED;
286 }; 286 };
287 287
288 #endif // SkBitmapDevice_DEFINED 288 #endif // SkBitmapDevice_DEFINED
OLDNEW
« no previous file with comments | « gm/imagefiltersgraph.cpp ('k') | include/core/SkDevice.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698