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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.cpp

Issue 2555213002: Implement color management for ImageData (Closed)
Patch Set: Work in progress Created 4 years 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/frame/ImageBitmap.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
index 3bebb361f49c1496e6fa794cf165950cf6d99f1d..8a1081de02470c47c3d8c80569d0e5a44df8475b 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.cpp
@@ -4,6 +4,7 @@
#include "core/frame/ImageBitmap.h"
+#include "core/html/Float32ImageData.h"
#include "core/html/HTMLCanvasElement.h"
#include "core/html/HTMLVideoElement.h"
#include "core/html/ImageData.h"
@@ -706,6 +707,10 @@ ImageBitmap::ImageBitmap(ImageBitmap* bitmap,
m_image->setPremultiplied(parsedOptions.premultiplyAlpha);
}
+ImageBitmap::ImageBitmap(Float32ImageData* data,
+ Optional<IntRect> cropRect,
+ const ImageBitmapOptions& options) {}
+
ImageBitmap::ImageBitmap(PassRefPtr<StaticBitmapImage> image,
Optional<IntRect> cropRect,
const ImageBitmapOptions& options) {
@@ -762,6 +767,12 @@ ImageBitmap* ImageBitmap::create(ImageData* data,
return new ImageBitmap(data, cropRect, options);
}
+ImageBitmap* ImageBitmap::create(Float32ImageData* data,
+ Optional<IntRect> cropRect,
+ const ImageBitmapOptions& options) {
+ return new ImageBitmap(data, cropRect, options);
+}
+
ImageBitmap* ImageBitmap::create(ImageBitmap* bitmap,
Optional<IntRect> cropRect,
const ImageBitmapOptions& options) {

Powered by Google App Engine
This is Rietveld 408576698