Chromium Code Reviews| Index: Source/platform/image-decoders/ImageDecoder.cpp |
| diff --git a/Source/platform/image-decoders/ImageDecoder.cpp b/Source/platform/image-decoders/ImageDecoder.cpp |
| index 16940d10e1a02755c60140e30f8ea17ba2b7139c..1af47737f9a61a25fd829e4e69c9f880b0f148c0 100644 |
| --- a/Source/platform/image-decoders/ImageDecoder.cpp |
| +++ b/Source/platform/image-decoders/ImageDecoder.cpp |
| @@ -204,4 +204,32 @@ size_t ImageDecoder::findRequiredPreviousFrame(size_t frameIndex, bool frameRect |
| } |
| } |
| +ImagePlanes::ImagePlanes() |
| +{ |
| + for (int i = 0; i < 3; ++i) { |
| + m_planes[i] = 0; |
| + m_rowBytes[i] = 0; |
| + } |
| +} |
| + |
| +void ImagePlanes::set(void* planes[3], size_t rowBytes[3]) |
|
Noel Gordon
2014/07/28 07:29:07
setPlanes
sugoi1
2014/08/19 20:28:47
Done.
|
| +{ |
| + for (int i = 0; i < 3; ++i) { |
| + m_planes[i] = planes[i]; |
| + m_rowBytes[i] = rowBytes[i]; |
| + } |
| +} |
| + |
| +void* ImagePlanes::plane(int i) |
| +{ |
| + ASSERT((i >= 0) && i < 3); |
| + return m_planes[i]; |
| +} |
| + |
| +size_t ImagePlanes::rowBytes(int i) const |
| +{ |
| + ASSERT((i >= 0) && i < 3); |
| + return m_rowBytes[i]; |
| +} |
| + |
| } // namespace blink |