Chromium Code Reviews| Index: include/core/SkPixelRef.h |
| diff --git a/include/core/SkPixelRef.h b/include/core/SkPixelRef.h |
| index 263145ba3d90baefabd5552cefed18892fed1c02..e3579bf41a4f55be99c9efb415f9d30f4f7c46fb 100644 |
| --- a/include/core/SkPixelRef.h |
| +++ b/include/core/SkPixelRef.h |
| @@ -14,6 +14,7 @@ |
| #include "SkString.h" |
| #include "SkFlattenable.h" |
| #include "SkImageInfo.h" |
| +#include "SkSize.h" |
| #include "SkTDArray.h" |
| //#define xed |
| @@ -227,6 +228,18 @@ public: |
| */ |
| virtual GrTexture* getTexture() { return NULL; } |
| + /** |
| + * If planes[0] is NULL, this should output the sizes and return true |
| + * if it can efficiently return YUV planar data. If it cannot, it should return false. |
| + * |
| + * If planes[0] is not NULL, then it should copy the associated Y,U,V data |
| + * into those planes of memory supplied by the caller. It should validate that the sizes |
| + * match what it expected. If the sizes do not match, it should return false. |
| + */ |
| + virtual bool getYUV8Planes(SkISize sizes[3], void* planes[3], int rowBytes[3]) { |
|
reed1
2014/07/10 17:15:15
size_t for rowBytes
sugoi1
2014/07/10 17:54:24
Done.
|
| + return false; |
| + } |
| + |
| bool readPixels(SkBitmap* dst, const SkIRect* subset = NULL); |
| /** |