Chromium Code Reviews| Index: include/core/SkImageGenerator.h |
| diff --git a/include/core/SkImageGenerator.h b/include/core/SkImageGenerator.h |
| index 4eb5cf85d67709b0801e48e4d863b0568ffc84da..097a7b25f5ab18a9e34f07781bf212cd60a7473c 100644 |
| --- a/include/core/SkImageGenerator.h |
| +++ b/include/core/SkImageGenerator.h |
| @@ -8,8 +8,9 @@ |
| #ifndef SkImageGenerator_DEFINED |
| #define SkImageGenerator_DEFINED |
| -#include "SkImageInfo.h" |
| #include "SkColor.h" |
| +#include "SkImageInfo.h" |
| +#include "SkPixelRef.h" |
| class SkBitmap; |
| class SkData; |
| @@ -121,7 +122,8 @@ public: |
| * associated YUV 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. |
| */ |
| - bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]); |
| + bool getYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
| + SkPixelRef::YUVColorSpace* colorSpace); |
| protected: |
| virtual SkData* onRefEncodedData(); |
| @@ -130,6 +132,8 @@ protected: |
| void* pixels, size_t rowBytes, |
| SkPMColor ctable[], int* ctableCount); |
| virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3]); |
|
rileya (GONE FROM CHROMIUM)
2014/09/11 06:59:30
I'm retaining the original interface, but if Blink
|
| + virtual bool onGetYUV8Planes(SkISize sizes[3], void* planes[3], size_t rowBytes[3], |
| + SkPixelRef::YUVColorSpace* colorSpace); |
| }; |
| #endif // SkImageGenerator_DEFINED |