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

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

Issue 2570613002: Add OffscreenCanvas to ImageBitmapSource union typedef (Closed)
Patch Set: build fix 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 018ac226f9075d838b1fc8f3f8030fae45962045..99fd4d56562ff925fa6ae68234bab2d1d45a154e 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,
@@ -58,6 +59,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());
@@ -144,6 +148,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>);
« no previous file with comments | « third_party/WebKit/Source/bindings/core/v8/BUILD.gn ('k') | third_party/WebKit/Source/core/frame/ImageBitmap.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698