Chromium Code Reviews| Index: src/core/SkYUVPlanesCache.h |
| diff --git a/src/core/SkYUVPlanesCache.h b/src/core/SkYUVPlanesCache.h |
| index a024192d07c21a192ffa16ebb5df114639c2cb8c..e6d64ec1deb5bb9e3dd4629b2b649f1369e34fe8 100644 |
| --- a/src/core/SkYUVPlanesCache.h |
| +++ b/src/core/SkYUVPlanesCache.h |
| @@ -10,6 +10,7 @@ |
| #include "SkCachedData.h" |
| #include "SkImageInfo.h" |
| +#include "SkYUVSizeInfo.h" |
| class SkResourceCache; |
| @@ -19,17 +20,11 @@ public: |
| * The Info struct contains data about the 3 Y, U and V planes of memory stored |
| * contiguously, in that order, as a single block of memory within SkYUVPlanesCache. |
| * |
| - * fSize: Width and height of each of the 3 planes (in pixels). |
| - * fSizeInMemory: Amount of memory allocated for each plane (may be different from |
| - "height * rowBytes", depending on the jpeg decoder's block size). |
| - * The sum of these is the total size stored within SkYUVPlanesCache. |
| - * fRowBytes: rowBytes for each of the 3 planes (in bytes). |
| + * fSizeInfo: fWidth, fHeight, and fWidthBytes of each of the Y, U, and V planes. |
| * fColorSpace: color space that will be used for the YUV -> RGB conversion. |
| */ |
| struct Info { |
|
msarett
2016/02/18 23:00:02
Instead of having this struct (in addition to SkYU
|
| - SkISize fSize[3]; |
| - size_t fSizeInMemory[3]; |
| - size_t fRowBytes[3]; |
| + YUVSizeInfo fSizeInfo; |
| SkYUVColorSpace fColorSpace; |
| }; |
| /** |