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 776800c8b50edcf2a1e08e937bc39e32d2611268..ff2c85e8ac9bb46c9ce8d40f5217ca7715a12b8c 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" |
@@ -705,6 +706,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) { |