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 399bb97d5b6eb2be50ae3e1aeed7d1d2de24acf8..f7dfe3e26fcc81995b7f3ad0c869014b09266ee5 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 = OwnPtr<SkBitmap>; |
+ static ImageBitmap* take(ScriptPromiseResolver*, PassOwnPtr<SkBitmap>); |
+ |
StaticBitmapImage* bitmapImage() const { return (m_image) ? m_image.get() : nullptr; } |
PassOwnPtr<uint8_t[]> copyBitmapData(AlphaDisposition alphaOp = DontPremultiplyAlpha); |
unsigned long width() const; |