OLD | NEW |
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 Loading... |
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 Loading... |
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 |
OLD | NEW |