Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1618)

Unified Diff: Source/platform/graphics/ImageFrameGenerator.h

Issue 544323002: Non DCTSIZE multiple width support for JPEG YUV decoding (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/platform/graphics/ImageFrameGenerator.h
diff --git a/Source/platform/graphics/ImageFrameGenerator.h b/Source/platform/graphics/ImageFrameGenerator.h
index b3fbf58a2816e98b9bcbd5b80a0d21ae24e2beb4..e44e1fb1c16d5e77975b1748c8f457ff29e2af78 100644
--- a/Source/platform/graphics/ImageFrameGenerator.h
+++ b/Source/platform/graphics/ImageFrameGenerator.h
@@ -72,7 +72,7 @@ public:
bool decodeAndScale(const SkImageInfo&, size_t index, void* pixels, size_t rowBytes);
// Decodes YUV components directly into the provided memory planes.
- bool decodeToYUV(void* planes[3], size_t rowBytes[3]);
+ bool decodeToYUV(SkISize componentSizes[3], void* planes[3], size_t rowBytes[3]);
void setData(PassRefPtr<SharedBuffer>, bool allDataReceived);
@@ -97,6 +97,8 @@ private:
void setHasAlpha(size_t index, bool hasAlpha);
+ void getYUVComponentSizes(const ImageDecoder*, SkISize componentSizes[3], bool memoryAllocation);
+
// These methods are called while m_decodeMutex is locked.
SkBitmap tryToResumeDecode(const SkISize& scaledSize, size_t index);

Powered by Google App Engine
This is Rietveld 408576698