| Index: third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| diff --git a/third_party/WebKit/Source/core/frame/ImageBitmap.h b/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| index d9174eb4937509eba785e573c8f519293feb2fbc..61772a4cfbf7de3344b876ba7f44a1d812e2a051 100644
|
| --- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| +++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
|
| @@ -42,6 +42,10 @@ public:
|
| static ImageBitmap* create(PassRefPtr<StaticBitmapImage>, const IntRect&, const ImageBitmapOptions& = ImageBitmapOptions());
|
| static PassRefPtr<SkImage> getSkImageFromDecoder(PassOwnPtr<ImageDecoder>);
|
|
|
| + // Type and helper function required by CallbackPromiseAdapter:
|
| + using WebType = sk_sp<SkImage>;
|
| + static ImageBitmap* take(ScriptPromiseResolver*, sk_sp<SkImage>);
|
| +
|
| StaticBitmapImage* bitmapImage() const { return (m_image) ? m_image.get() : nullptr; }
|
| PassOwnPtr<uint8_t[]> copyBitmapData(AlphaDisposition alphaOp = DontPremultiplyAlpha);
|
| unsigned long width() const;
|
|
|