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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.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/ImageSource.h
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.h b/third_party/WebKit/Source/platform/graphics/ImageSource.h
index f4b01c48961037830038e9360e5b5acd1ae62e5d..4766b8993c2c6e6ea37881d3fc5e859b30b3ccfe 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.h
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.h
@@ -90,7 +90,7 @@ class PLATFORM_EXPORT ImageSource final {
size_t frameCount() const;
// Attempts to create the requested frame.
- sk_sp<SkImage> createFrameAtIndex(size_t);
+ sk_sp<SkImage> createFrameAtIndex(size_t, sk_sp<SkColorSpace>);
float frameDurationAtIndex(size_t) const;
bool frameHasAlphaAtIndex(
@@ -105,6 +105,8 @@ class PLATFORM_EXPORT ImageSource final {
private:
std::unique_ptr<DeferredImageDecoder> m_decoder;
+ RefPtr<SharedBuffer> m_data;
+ bool m_allDataReceived = false;
};
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/platform/graphics/Image.cpp ('k') | third_party/WebKit/Source/platform/graphics/ImageSource.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698