Chromium Code Reviews| 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(); |