diff options
author | 2015-01-06 11:30:45 -0800 | |
---|---|---|
committer | 2015-01-06 11:30:45 -0800 | |
commit | b5d818ab04860a9b558ae0d6edef6386c4a09061 (patch) | |
tree | 05dd0f41b2083e07da04a66a0d118ab0e81e3b46 /include/core | |
parent | b5bd9c113e81df6251389010e713d9ee827bd334 (diff) |
will write a custom one for blink later
BUG=skia:
TBR=
NOTRY=True
Review URL: https://codereview.chromium.org/810603003
Diffstat (limited to 'include/core')
-rw-r--r-- | include/core/SkImageGenerator.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h index cd6c373f40..635a8d4b44 100644 --- a/include/core/SkImageGenerator.h +++ b/include/core/SkImageGenerator.h @@ -116,6 +116,13 @@ public: bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], SkYUVColorSpace* colorSpace); + /** + * If the default image decoder system can interpret the specified (encoded) data, then + * this returns a new ImageGenerator for it. Otherwise this returns NULL. Either way + * the caller is still responsible for managing their ownership of the data. + */ + static SkImageGenerator* NewFromData(SkData*); + protected: virtual SkData* onRefEncodedData(); virtual bool onGetInfo(SkImageInfo* info); |