| 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 7003e7b59ffa9bce99238dc88d36d2193e50ee93..ed3746d7765d5563452108a59120f9f2169c776d 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"
|
| @@ -763,6 +764,8 @@ static sk_sp<SkImage> scaleSkImage(sk_sp<SkImage> skImage,
|
| resizedPixels.release().leakRef());
|
| }
|
|
|
| +// TODO(zakerinasab): Fix this and the constructor from Float32ImageData
|
| +// when the CL for Float32ImageData landed.
|
| ImageBitmap::ImageBitmap(ImageData* data,
|
| Optional<IntRect> cropRect,
|
| const ImageBitmapOptions& options) {
|
| @@ -911,6 +914,10 @@ ImageBitmap::ImageBitmap(ImageData* data,
|
| m_image = StaticBitmapImage::create(std::move(skImage));
|
| }
|
|
|
| +ImageBitmap::ImageBitmap(Float32ImageData* data,
|
| + Optional<IntRect> cropRect,
|
| + const ImageBitmapOptions& options) {}
|
| +
|
| ImageBitmap::ImageBitmap(ImageBitmap* bitmap,
|
| Optional<IntRect> cropRect,
|
| const ImageBitmapOptions& options) {
|
| @@ -995,6 +1002,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) {
|
|
|