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

Unified Diff: include/core/SkImageDecoder.h

Issue 374743003: Skia side RGB to YUV gpu conversion (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Ported a minimal set of blink side changes for YUV decoding tests Created 6 years, 5 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: include/core/SkImageDecoder.h
diff --git a/include/core/SkImageDecoder.h b/include/core/SkImageDecoder.h
index b258afedce184e79f3907c7cf8f29a6318c068ba..c2aa18f7d897371884eb356bdc39ea48fc13e328 100644
--- a/include/core/SkImageDecoder.h
+++ b/include/core/SkImageDecoder.h
@@ -46,6 +46,17 @@ public:
*/
virtual Format getFormat() const;
+
+ /** Returns the sizes of each component of the image
+ */
+ virtual bool getImageFormat(SkStream*, SkISize sizes[3]) {
scroggo 2014/07/18 21:52:40 This name doesn't seem to match what it does. A be
+ return false;
+ }
+
+ /* If the decoder wants to support YUV based decoding, this method must be overridden.
+ */
+ virtual void setYUVBuffers(void* yuv[3], size_t rowBytes[3]) {}
scroggo 2014/07/18 21:52:40 For both of these, why not have two functions: vo
+
/** Return the format of the SkStreamRewindable or kUnknown_Format if it cannot be determined.
Rewinds the stream before returning.
*/
« no previous file with comments | « gyp/tests.gypi ('k') | include/core/SkImageGenerator.h » ('j') | include/core/SkImageGenerator.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698