Chromium Code Reviews| Index: include/core/SkPixelRef.h |
| diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
| index a997993eb11e1d7f0a570c6e899deea66320c8a8..6a5cf15d9f30f3852afdaeb6f768ee278a711cfc 100644 |
| --- a/include/core/SkPixelRef.h |
| +++ b/include/core/SkPixelRef.h |
| @@ -40,6 +40,7 @@ |
| class SkColorTable; |
| class SkData; |
| +class SkImageGenerator; |
| struct SkIRect; |
| class SkMutex; |
| @@ -226,6 +227,10 @@ public: |
| */ |
| virtual GrTexture* getTexture() { return NULL; } |
| + /** Do we have data that requires decoding from an image generator? |
| + */ |
| + virtual SkImageGenerator* getImageGenerator() const { return NULL; } |
|
sugoi1
2014/07/08 14:42:02
Since the new API was in SkImageGenerator, I assum
reed1
2014/07/08 15:08:52
Hmm, I wonder if its safer to just expose getYUVPl
sugoi1
2014/07/09 19:57:43
Done.
|
| + |
| bool readPixels(SkBitmap* dst, const SkIRect* subset = NULL); |
| /** |