| 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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 56 virtual bool getROPixels(SkBitmap*) const { return false; } | 56 virtual bool getROPixels(SkBitmap*) const { return false; } |
| 57 | 57 |
| 58 virtual SkShader* onNewShader(SkShader::TileMode, | 58 virtual SkShader* onNewShader(SkShader::TileMode, |
| 59 SkShader::TileMode, | 59 SkShader::TileMode, |
| 60 const SkMatrix* localMatrix) const { return NU
LL; }; | 60 const SkMatrix* localMatrix) const { return NU
LL; }; |
| 61 | 61 |
| 62 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi
s bounds | 62 // newWidth > 0, newHeight > 0, subset either NULL or a proper subset of thi
s bounds |
| 63 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs
et, | 63 virtual SkImage* onNewImage(int newWidth, int newHeight, const SkIRect* subs
et, |
| 64 SkFilterQuality) const; | 64 SkFilterQuality) const; |
| 65 | 65 |
| 66 virtual void onPreroll() const {} |
| 67 |
| 66 private: | 68 private: |
| 67 const SkSurfaceProps fProps; | 69 const SkSurfaceProps fProps; |
| 68 | 70 |
| 69 typedef SkImage INHERITED; | 71 typedef SkImage INHERITED; |
| 70 }; | 72 }; |
| 71 | 73 |
| 72 static inline SkImage_Base* as_IB(SkImage* image) { | 74 static inline SkImage_Base* as_IB(SkImage* image) { |
| 73 return static_cast<SkImage_Base*>(image); | 75 return static_cast<SkImage_Base*>(image); |
| 74 } | 76 } |
| 75 | 77 |
| 76 static inline const SkImage_Base* as_IB(const SkImage* image) { | 78 static inline const SkImage_Base* as_IB(const SkImage* image) { |
| 77 return static_cast<const SkImage_Base*>(image); | 79 return static_cast<const SkImage_Base*>(image); |
| 78 } | 80 } |
| 79 | 81 |
| 80 #endif | 82 #endif |
| OLD | NEW |