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..127e644508b54ee19cccfd3d4345de39c1274018 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; |