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

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

Issue 1647703006: Track positions of dimensions in image files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated GIF dimensions UMA logic Created 4 years, 11 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: third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
index 25aa80a4cef47478498a413ed3265849a0a2e72d..a7527fcbdd3a4a978af355d485609019a78be5a0 100644
--- a/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
+++ b/third_party/WebKit/Source/platform/image-decoders/jpeg/JPEGImageDecoder.h
@@ -57,6 +57,8 @@ public:
void setOrientation(ImageOrientation orientation) { m_orientation = orientation; }
void setHasColorProfile(bool hasColorProfile) { m_hasColorProfile = hasColorProfile; }
void setDecodedSize(unsigned width, unsigned height);
+ void setSizeOffset(size_t sizeOffset) { m_sizeOffset = sizeOffset; }
+ void setSizeOffsetOptimized(size_t sizeOffsetOptimized) { m_sizeOffsetOptimized = sizeOffsetOptimized; }
private:
// ImageDecoder:
@@ -71,6 +73,8 @@ private:
OwnPtr<JPEGImageReader> m_reader;
OwnPtr<ImagePlanes> m_imagePlanes;
IntSize m_decodedSize;
+ size_t m_sizeOffset;
+ size_t m_sizeOffsetOptimized;
bool m_hasColorProfile;
};

Powered by Google App Engine
This is Rietveld 408576698