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 13 matching lines...) Expand all Loading... |
24 virtual const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const { | 24 virtual const void* onPeekPixels(SkImageInfo*, size_t* /*rowBytes*/) const { |
25 return NULL; | 25 return NULL; |
26 } | 26 } |
27 | 27 |
28 virtual GrTexture* onGetTexture() { return NULL; } | 28 virtual GrTexture* onGetTexture() { return NULL; } |
29 | 29 |
30 // return a read-only copy of the pixels. We promise to not modify them, | 30 // return a read-only copy of the pixels. We promise to not modify them, |
31 // but only inspect them (or encode them). | 31 // but only inspect them (or encode them). |
32 virtual bool getROPixels(SkBitmap*) const { return false; } | 32 virtual bool getROPixels(SkBitmap*) const { return false; } |
33 | 33 |
| 34 virtual SkShader* onNewShader(SkShader::TileMode, SkShader::TileMode) const
= 0; |
34 private: | 35 private: |
35 typedef SkImage INHERITED; | 36 typedef SkImage INHERITED; |
36 }; | 37 }; |
37 | 38 |
38 #endif | 39 #endif |
OLD | NEW |