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

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

Issue 2530443004: Add target color profile to BitmapImage::draw (Closed)
Patch Set: 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 338360a6701775c2766f70c37930d214ff59994d..f9d0143387494a98d0e5ca1622f4a5e1f7f09996 100644
--- a/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
+++ b/third_party/WebKit/Source/platform/graphics/DeferredImageDecoder.h
@@ -81,6 +81,7 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
size_t frameBytesAtIndex(size_t index) const;
ImageOrientation orientationAtIndex(size_t index) const;
bool hotSpot(IntPoint&) const;
+ sk_sp<SkColorSpace> targetColorSpace() const { return m_targetColorSpace; }
private:
explicit DeferredImageDecoder(std::unique_ptr<ImageDecoder> actualDecoder);
@@ -102,6 +103,7 @@ class PLATFORM_EXPORT DeferredImageDecoder final {
std::unique_ptr<SkRWBuffer> m_rwBuffer;
bool m_allDataReceived;
std::unique_ptr<ImageDecoder> m_actualDecoder;
+ sk_sp<SkColorSpace> m_targetColorSpace;
String m_filenameExtension;
IntSize m_size;

Powered by Google App Engine
This is Rietveld 408576698