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

Unified Diff: third_party/WebKit/Source/core/html/ImageData.h

Issue 2845193002: Refactor ImageBitmap constructor from ImageData to be color managed
Patch Set: local commit - all working except unpremultiply Created 3 years, 6 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/core/html/ImageData.h
diff --git a/third_party/WebKit/Source/core/html/ImageData.h b/third_party/WebKit/Source/core/html/ImageData.h
index 8d03a8cfafa7eb749ecd461cf7f4062f976ebb02..573d09d42948fb85d96a003b0cd3dab998f245b2 100644
--- a/third_party/WebKit/Source/core/html/ImageData.h
+++ b/third_party/WebKit/Source/core/html/ImageData.h
@@ -134,10 +134,12 @@ class CORE_EXPORT ImageData final : public GarbageCollectedFinalized<ImageData>,
DOMArrayBufferBase* BufferBase() const;
- sk_sp<SkColorSpace> GetSkColorSpace();
+ CanvasColorParams GetCanvasColorParams();
bool ImageDataInCanvasColorSettings(const CanvasColorSpace&,
const CanvasPixelFormat&,
std::unique_ptr<uint8_t[]>&);
+ bool ImageDataInCanvasColorSettings(const CanvasColorParams&,
+ std::unique_ptr<uint8_t[]>&);
// ImageBitmapSource implementation
IntSize BitmapSourceSize() const override { return size_; }
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp ('k') | third_party/WebKit/Source/core/html/ImageData.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698