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

Unified Diff: third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h

Issue 2523943002: Explicitly specify target color space to ImageDecoder at creation (Closed)
Patch Set: Rebase Created 4 years, 1 month 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/graphics/DeferredImageDecoder.h
diff --git a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
index 5f5649fee72c6726889fd91616bb768658e6d49d..338360a6701775c2766f70c37930d214ff59994d 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -53,7 +53,8 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
PassRefPtr<SharedBuffer> data,
bool dataComplete,
ImageDecoder::AlphaOption,
- ImageDecoder::ColorSpaceOption);
+ ImageDecoder::ColorSpaceOption,
+ sk_sp<SkColorSpace> targetColorSpace);
static std::unique_ptr<DeferredImageDecoder> createForTesting(
std::unique_ptr<ImageDecoder>);
@@ -106,6 +107,7 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
IntSize m_size;
int m_repetitionCount;
bool m_hasEmbeddedColorSpace = false;
+ sk_sp<SkColorSpace> m_colorSpaceForSkImages;
bool m_canYUVDecode;
bool m_hasHotSpot;
IntPoint m_hotSpot;

Powered by Google App Engine
This is Rietveld 408576698