| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 The Android Open Source Project | 2 * Copyright 2012 The Android Open Source Project |
| 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 SkBitmapSource_DEFINED | 8 #ifndef SkBitmapSource_DEFINED |
| 9 #define SkBitmapSource_DEFINED | 9 #define SkBitmapSource_DEFINED |
| 10 | 10 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 SK_TO_STRING_OVERRIDE() | 26 SK_TO_STRING_OVERRIDE() |
| 27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource) | 27 SK_DECLARE_PUBLIC_FLATTENABLE_DESERIALIZATION_PROCS(SkBitmapSource) |
| 28 | 28 |
| 29 protected: | 29 protected: |
| 30 explicit SkBitmapSource(const SkBitmap& bitmap); | 30 explicit SkBitmapSource(const SkBitmap& bitmap); |
| 31 SkBitmapSource(const SkBitmap& bitmap, | 31 SkBitmapSource(const SkBitmap& bitmap, |
| 32 const SkRect& srcRect, const SkRect& dstRect, | 32 const SkRect& srcRect, const SkRect& dstRect, |
| 33 SkFilterQuality filterQuality); | 33 SkFilterQuality filterQuality); |
| 34 void flatten(SkWriteBuffer&) const override; | 34 void flatten(SkWriteBuffer&) const override; |
| 35 | 35 |
| 36 virtual bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, | 36 bool onFilterImage(Proxy*, const SkBitmap& src, const Context&, |
| 37 SkBitmap* result, SkIPoint* offset) const overrid
e; | 37 SkBitmap* result, SkIPoint* offset) const override; |
| 38 | 38 |
| 39 private: | 39 private: |
| 40 SkBitmap fBitmap; | 40 SkBitmap fBitmap; |
| 41 SkRect fSrcRect, fDstRect; | 41 SkRect fSrcRect, fDstRect; |
| 42 SkFilterQuality fFilterQuality; | 42 SkFilterQuality fFilterQuality; |
| 43 | 43 |
| 44 typedef SkImageFilter INHERITED; | 44 typedef SkImageFilter INHERITED; |
| 45 }; | 45 }; |
| 46 | 46 |
| 47 #endif | 47 #endif |
| OLD | NEW |