| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2012 Google Inc. | 2 * Copyright 2012 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 SkImage_Base_DEFINED | 8 #ifndef SkImage_Base_DEFINED |
| 9 #define SkImage_Base_DEFINED | 9 #define SkImage_Base_DEFINED |
| 10 | 10 |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 | 54 |
| 55 virtual SkShader* onNewShader(SkShader::TileMode, | 55 virtual SkShader* onNewShader(SkShader::TileMode, |
| 56 SkShader::TileMode, | 56 SkShader::TileMode, |
| 57 const SkMatrix* localMatrix) const { return NU
LL; }; | 57 const SkMatrix* localMatrix) const { return NU
LL; }; |
| 58 | 58 |
| 59 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi
s bounds | 59 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi
s bounds |
| 60 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs
et, | 60 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs
et, |
| 61 SkFilterQuality) const; | 61 SkFilterQuality) const; |
| 62 virtual SkData* onRefEncoded() const { return NULL; } | 62 virtual SkData* onRefEncoded() const { return NULL; } |
| 63 | 63 |
| 64 virtual bool onAsLegacyBitmap(SkBitmap*, LegacyBitmapMode) const; |
| 65 |
| 64 private: | 66 private: |
| 65 const SkSurfaceProps fProps; | 67 const SkSurfaceProps fProps; |
| 66 | 68 |
| 67 typedef SkImage INHERITED; | 69 typedef SkImage INHERITED; |
| 68 }; | 70 }; |
| 69 | 71 |
| 70 static inline SkImage_Base* as_IB(SkImage* image) { | 72 static inline SkImage_Base* as_IB(SkImage* image) { |
| 71 return static_cast<SkImage_Base*>(image); | 73 return static_cast<SkImage_Base*>(image); |
| 72 } | 74 } |
| 73 | 75 |
| 74 static inline const SkImage_Base* as_IB(const SkImage* image) { | 76 static inline const SkImage_Base* as_IB(const SkImage* image) { |
| 75 return static_cast<const SkImage_Base*>(image); | 77 return static_cast<const SkImage_Base*>(image); |
| 76 } | 78 } |
| 77 | 79 |
| 78 #endif | 80 #endif |
| OLD | NEW |