Chromium Code Reviews| Index: include/core/SkImage.h |
| diff --git a/include/core/SkImage.h b/include/core/SkImage.h |
| index 62a9e9cf426bc132ded0e4fad45aa76306361b0f..8fd0c9e78de29d10df46f3b06edc6e7f3fa66da8 100644 |
| --- a/include/core/SkImage.h |
| +++ b/include/core/SkImage.h |
| @@ -154,6 +154,13 @@ public: |
| uint32_t uniqueID() const { return fUniqueID; } |
| virtual bool isOpaque() const { return false; } |
| + /** |
| + * Extracts YUV planes from the SkImage and stores them in client-provided memory. The sizes |
| + * planes and rowBytes arrays are ordered [y, u, v]. |
| + */ |
| + bool asYUV8Planes(const SkISize[3], void* const planes[3], const size_t rowBytes[3], |
|
reed1
2016/01/29 17:17:00
bikeshed: readYUV8Planes -- to be suggestive of re
bsalomon
2016/01/29 17:36:42
Done.
|
| + SkYUVColorSpace); |
| + |
| virtual SkShader* newShader(SkShader::TileMode, |
| SkShader::TileMode, |
| const SkMatrix* localMatrix = NULL) const; |