Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(387)

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmap.h

Issue 1899403002: MediaStream Image Capture (2): Platform::ImageCaptureFrameGrabber and grabFrame() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: emircan@ comments and using SkImage (ref counted) instead of SkBitmap (moveable-non-copyable) throu… Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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;

Powered by Google App Engine
This is Rietveld 408576698