diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/core/SkImage.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkImage.h b/include/core/SkImage.h index 3920eeab00..e6ac682876 100644 --- a/include/core/SkImage.h +++ b/include/core/SkImage.h @@ -72,6 +72,13 @@ public: int height() const { return fHeight; } uint32_t uniqueID() const { return fUniqueID; } + /** + * Return the GrTexture that stores the image pixels. Calling getTexture + * does not affect the reference count of the GrTexture object. + * Will return NULL if the image does not use a texture. + */ + GrTexture* getTexture(); + SkShader* newShaderClamp() const; SkShader* newShader(SkShader::TileMode, SkShader::TileMode) const; |