OLD | NEW |
1 /* | 1 /* |
2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 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 SkGatherPixelRefsAndRects_DEFINED | 8 #ifndef SkGatherPixelRefsAndRects_DEFINED |
9 #define SkGatherPixelRefsAndRects_DEFINED | 9 #define SkGatherPixelRefsAndRects_DEFINED |
10 | 10 |
(...skipping 281 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
292 return fEmptyBitmap; | 292 return fEmptyBitmap; |
293 } | 293 } |
294 virtual bool onReadPixels(const SkBitmap& bitmap, | 294 virtual bool onReadPixels(const SkBitmap& bitmap, |
295 int x, int y, | 295 int x, int y, |
296 SkCanvas::Config8888 config8888) SK_OVERRIDE { | 296 SkCanvas::Config8888 config8888) SK_OVERRIDE { |
297 NotSupported(); | 297 NotSupported(); |
298 return false; | 298 return false; |
299 } | 299 } |
300 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } | 300 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } |
301 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } | 301 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } |
302 virtual bool allowImageFilter(SkImageFilter*) SK_OVERRIDE { return false; } | 302 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal
se; } |
303 virtual bool canHandleImageFilter(SkImageFilter*) SK_OVERRIDE { return false
; } | 303 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return
false; } |
304 virtual bool filterImage(SkImageFilter*, const SkBitmap&, const SkMatrix&, | 304 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
ix&, |
305 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { | 305 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { |
306 return false; | 306 return false; |
307 } | 307 } |
308 | 308 |
309 private: | 309 private: |
310 SkPictureUtils::SkPixelRefContainer* fPRCont; | 310 SkPictureUtils::SkPixelRefContainer* fPRCont; |
311 SkISize fSize; | 311 SkISize fSize; |
312 | 312 |
313 SkBitmap fEmptyBitmap; // legacy -- need to remo
ve | 313 SkBitmap fEmptyBitmap; // legacy -- need to remo
ve |
314 | 314 |
(...skipping 25 matching lines...) Expand all Loading... |
340 static void NotSupported() { | 340 static void NotSupported() { |
341 SkDEBUGFAIL("this method should never be called"); | 341 SkDEBUGFAIL("this method should never be called"); |
342 } | 342 } |
343 | 343 |
344 static void NothingToDo() {} | 344 static void NothingToDo() {} |
345 | 345 |
346 typedef SkBaseDevice INHERITED; | 346 typedef SkBaseDevice INHERITED; |
347 }; | 347 }; |
348 | 348 |
349 #endif // SkGatherPixelRefsAndRects_DEFINED | 349 #endif // SkGatherPixelRefsAndRects_DEFINED |
OLD | NEW |