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

Unified Diff: third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h

Issue 1775153002: Make OffscreenCanvasRenderingContext2D renderable on a worker (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 9 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/modules/offscreencanvas/OffscreenCanvasRenderingContext.h
diff --git a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h
index 341baa75b92da83b3b871bcac0858755ab27a6af..ca3f22286715b1aaa65f11f685a824b4660bdc2e 100644
--- a/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h
+++ b/third_party/WebKit/Source/modules/offscreencanvas/OffscreenCanvasRenderingContext.h
@@ -10,6 +10,8 @@
namespace blink {
+class ImageBitmap;
+
class MODULES_EXPORT OffscreenCanvasRenderingContext : public GarbageCollectedFinalized<OffscreenCanvasRenderingContext>, public ScriptWrappable {
WTF_MAKE_NONCOPYABLE(OffscreenCanvasRenderingContext);
public:
@@ -24,6 +26,7 @@ public:
OffscreenCanvas* getOffscreenCanvas() const { return m_offscreenCanvas; }
virtual ContextType getContextType() const = 0;
+ virtual PassRefPtrWillBeRawPtr<ImageBitmap> transferToImageBitmap(ExceptionState&) = 0;
virtual bool is2d() const { return false; }

Powered by Google App Engine
This is Rietveld 408576698