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

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

Issue 2570613002: Add OffscreenCanvas to ImageBitmapSource union typedef (Closed)
Patch Set: Created 4 years 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 9cc2b77e640c4dd88e82dfdbdc0323ad20385e8a..d6840780fbe92c6cabe6a4119d2f618e18e124eb 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmap.h
+++ b/third_party/WebKit/Source/core/frame/ImageBitmap.h
@@ -25,6 +25,7 @@ class HTMLCanvasElement;
class HTMLVideoElement;
class ImageData;
class ImageDecoder;
+class OffscreenCanvas;
enum AlphaDisposition {
PremultiplyAlpha,
@@ -54,6 +55,9 @@ class CORE_EXPORT ImageBitmap final
static ImageBitmap* create(HTMLCanvasElement*,
Optional<IntRect>,
const ImageBitmapOptions& = ImageBitmapOptions());
+ static ImageBitmap* create(OffscreenCanvas*,
+ Optional<IntRect>,
+ const ImageBitmapOptions& = ImageBitmapOptions());
static ImageBitmap* create(ImageData*,
Optional<IntRect>,
const ImageBitmapOptions& = ImageBitmapOptions());
@@ -136,6 +140,7 @@ class CORE_EXPORT ImageBitmap final
Document*,
const ImageBitmapOptions&);
ImageBitmap(HTMLCanvasElement*, Optional<IntRect>, const ImageBitmapOptions&);
+ ImageBitmap(OffscreenCanvas*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(ImageData*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(ImageBitmap*, Optional<IntRect>, const ImageBitmapOptions&);
ImageBitmap(PassRefPtr<StaticBitmapImage>);

Powered by Google App Engine
This is Rietveld 408576698