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

Unified Diff: third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.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/imagebitmap/ImageBitmapFactories.cpp
diff --git a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
index f053a33e37d4afb757810137089f54b41c110043..01fcb7ebd6331f7f8711e8796f4bbdeebdcefa06 100644
--- a/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
+++ b/third_party/WebKit/Source/core/imagebitmap/ImageBitmapFactories.cpp
@@ -37,6 +37,7 @@
#include "core/frame/ImageBitmap.h"
#include "core/frame/LocalDOMWindow.h"
#include "core/frame/UseCounter.h"
+#include "core/html/Float32ImageData.h"
#include "core/html/HTMLCanvasElement.h"
#include "core/html/HTMLImageElement.h"
#include "core/html/HTMLVideoElement.h"
@@ -91,6 +92,8 @@ static inline ImageBitmapSource* toImageBitmapSourceInternal(
return value.getAsBlob();
if (value.isImageData())
return value.getAsImageData();
+ if (value.isFloat32ImageData())
+ return value.getAsFloat32ImageData();
Justin Novosad 2016/12/08 18:16:35 should have a DCHECK on the runtim flag that expos
zakerinasab 2016/12/08 20:40:52 Done.
if (value.isImageBitmap())
return value.getAsImageBitmap();
ASSERT_NOT_REACHED();

Powered by Google App Engine
This is Rietveld 408576698