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

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

Issue 2454123002: Refactor image decoders to use 'colorSpace' instead of 'colorProfile' (Closed)
Patch Set: Created 4 years, 2 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 045fcc7b654d36e8737c9a81de65c2b6c917fdb0..bdbf82e0d6e86e5c512dc7ee0d5d18c9a73915fc 100644
--- a/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
+++ b/third_party/WebKit/Source/platform/image-decoders/ImageFrame.h
@@ -121,9 +121,7 @@ class PLATFORM_EXPORT ImageFrame final {
// Allocates space for the pixel data. Must be called before any pixels
// are written. Must only be called once. Returns whether allocation
// succeeded.
- bool setSizeAndColorProfile(int newWidth,
- int newHeight,
- const ICCProfile& newIccProfile);
+ bool setSizeAndColorSpace(int newWidth, int newHeight, sk_sp<SkColorSpace>);
bool hasAlpha() const;
const IntRect& originalFrameRect() const { return m_originalFrameRect; }

Powered by Google App Engine
This is Rietveld 408576698