| 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 289 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 300 virtual bool onReadPixels(const SkBitmap& bitmap, | 300 virtual bool onReadPixels(const SkBitmap& bitmap, |
| 301 int x, int y, | 301 int x, int y, |
| 302 SkCanvas::Config8888 config8888) SK_OVERRIDE { | 302 SkCanvas::Config8888 config8888) SK_OVERRIDE { |
| 303 NotSupported(); | 303 NotSupported(); |
| 304 return false; | 304 return false; |
| 305 } | 305 } |
| 306 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } | 306 virtual void lockPixels() SK_OVERRIDE { NothingToDo(); } |
| 307 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } | 307 virtual void unlockPixels() SK_OVERRIDE { NothingToDo(); } |
| 308 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal
se; } | 308 virtual bool allowImageFilter(const SkImageFilter*) SK_OVERRIDE { return fal
se; } |
| 309 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return
false; } | 309 virtual bool canHandleImageFilter(const SkImageFilter*) SK_OVERRIDE { return
false; } |
| 310 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkMatr
ix&, | 310 virtual bool filterImage(const SkImageFilter*, const SkBitmap&, const SkImag
eFilter::Context&, |
| 311 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { | 311 SkBitmap* result, SkIPoint* offset) SK_OVERRIDE { |
| 312 return false; | 312 return false; |
| 313 } | 313 } |
| 314 | 314 |
| 315 private: | 315 private: |
| 316 SkPictureUtils::SkPixelRefContainer* fPRCont; | 316 SkPictureUtils::SkPixelRefContainer* fPRCont; |
| 317 SkISize fSize; | 317 SkISize fSize; |
| 318 | 318 |
| 319 SkBitmap fEmptyBitmap; // legacy -- need to remo
ve | 319 SkBitmap fEmptyBitmap; // legacy -- need to remo
ve |
| 320 | 320 |
| (...skipping 23 matching lines...) Expand all Loading... |
| 344 static void NotSupported() { | 344 static void NotSupported() { |
| 345 SkDEBUGFAIL("this method should never be called"); | 345 SkDEBUGFAIL("this method should never be called"); |
| 346 } | 346 } |
| 347 | 347 |
| 348 static void NothingToDo() {} | 348 static void NothingToDo() {} |
| 349 | 349 |
| 350 typedef SkBaseDevice INHERITED; | 350 typedef SkBaseDevice INHERITED; |
| 351 }; | 351 }; |
| 352 | 352 |
| 353 #endif // SkGatherPixelRefsAndRects_DEFINED | 353 #endif // SkGatherPixelRefsAndRects_DEFINED |
| OLD | NEW |