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

Unified Diff: Source/platform/graphics/test/MockImageDecoder.h

Issue 418653002: Allowing YUV data to be retrieved from the JPEG Decoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Changed unsigned char to appropriate JSAMP... types 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: Source/platform/graphics/test/MockImageDecoder.h
diff --git a/Source/platform/graphics/test/MockImageDecoder.h b/Source/platform/graphics/test/MockImageDecoder.h
index 65e9003c936f03b3517987a21151b6b324524174..af17aa839d03e8a147bbaefacd4cf97e96746798 100644
--- a/Source/platform/graphics/test/MockImageDecoder.h
+++ b/Source/platform/graphics/test/MockImageDecoder.h
@@ -44,7 +44,7 @@ public:
// MockImageDecoder::decodedSize() to return the same thing as
// MockImageDecoder::size(). See the precise implementation of
// MockImageDecoder::decodedSize() below.
- virtual IntSize decodedSize() const { return IntSize(); }
+ virtual IntSize decodedSize(int component = 0) const { return IntSize(); }
};
class MockImageDecoder : public ImageDecoder {
@@ -61,9 +61,9 @@ public:
m_client->decoderBeingDestroyed();
}
- virtual IntSize decodedSize() const OVERRIDE
+ virtual IntSize decodedSize(int component = 0) const OVERRIDE
{
- return m_client->decodedSize().isEmpty() ? size() : m_client->decodedSize();
+ return m_client->decodedSize(component).isEmpty() ? size() : m_client->decodedSize(component);
}
virtual bool setSize(unsigned width, unsigned height) OVERRIDE

Powered by Google App Engine
This is Rietveld 408576698