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

Unified Diff: Source/core/platform/image-decoders/jpeg/JPEGImageDecoder.h

Issue 15466003: Remove image decoder down sampling (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Remove virtual setSize() from GIF decoder Created 7 years, 7 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/core/platform/image-decoders/jpeg/JPEGImageDecoder.h
diff --git a/Source/core/platform/image-decoders/jpeg/JPEGImageDecoder.h b/Source/core/platform/image-decoders/jpeg/JPEGImageDecoder.h
index 468ff14064e471a1ce160ea624de28bac88ffeed..fd24561f8a7e00a975d1c6ae7922339083a80192 100644
--- a/Source/core/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/Source/core/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -48,19 +48,12 @@ namespace WebCore {
// ImageDecoder
virtual String filenameExtension() const { return "jpg"; }
virtual bool isSizeAvailable();
- virtual bool setSize(unsigned width, unsigned height);
virtual ImageFrame* frameBufferAtIndex(size_t index);
// CAUTION: setFailed() deletes |m_reader|. Be careful to avoid
// accessing deleted memory, especially when calling this from inside
// JPEGImageReader!
virtual bool setFailed();
- bool willDownSample()
- {
- ASSERT(ImageDecoder::isSizeAvailable());
- return m_scaled;
- }
-
bool outputScanlines();
void jpegComplete();
@@ -75,9 +68,6 @@ namespace WebCore {
template <J_COLOR_SPACE colorSpace>
bool outputScanlines(ImageFrame& buffer);
- template <J_COLOR_SPACE colorSpace, bool isScaled>
- bool outputScanlines(ImageFrame& buffer);
-
OwnPtr<JPEGImageReader> m_reader;
};

Powered by Google App Engine
This is Rietveld 408576698