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

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

Issue 2203903002: Color: Read embedded ICC profiles regardless of QCMS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update tests Created 4 years, 4 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/ImageFrame.h
diff --git a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
index 7a51c75e23dfa7f6aa20ba419fc6ded626c89d71..f6e4e8b14640b89ec7db3dc83f3ae120c9aaf77f 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
@@ -29,6 +29,7 @@
#include "platform/PlatformExport.h"
#include "platform/geometry/IntRect.h"
+#include "public/platform/WebVector.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "wtf/Allocator.h"
#include "wtf/Assertions.h"
@@ -70,6 +71,8 @@ public:
};
typedef uint32_t PixelData;
+ typedef WebVector<char> ICCProfile;
+
ImageFrame();
// The assignment operator reads m_hasAlpha (inside setStatus()) before it
@@ -111,7 +114,7 @@ public:
// Allocates space for the pixel data. Must be called before any pixels
// are written. Must only be called once. Returns whether allocation
// succeeded.
- bool setSize(int newWidth, int newHeight);
+ bool setSizeAndColorProfile(int newWidth, int newHeight, const ICCProfile& newIccProfile);
bool hasAlpha() const;
const IntRect& originalFrameRect() const { return m_originalFrameRect; }

Powered by Google App Engine
This is Rietveld 408576698