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

Unified Diff: third_party/WebKit/Source/modules/ModulesInitializer.cpp

Issue 1862033002: Make OffscreenCanvas Transferable (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase, compiles but crashes some layout tests 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/modules/ModulesInitializer.cpp
diff --git a/third_party/WebKit/Source/modules/ModulesInitializer.cpp b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
index c20f0b016d38fb252b90875543ea81ccf52db095..fbe23d8309479e85ee0696fc678c90ed05ee9b48 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -4,7 +4,9 @@
#include "ModulesInitializer.h"
+#include "bindings/core/v8/TransferableExtractor.h"
#include "bindings/modules/v8/ModuleBindingsInitializer.h"
+#include "bindings/modules/v8/TransferableOffscreenCanvasExtractor.h"
#include "core/EventTypeNames.h"
#include "core/dom/Document.h"
#include "core/html/HTMLCanvasElement.h"
@@ -54,6 +56,8 @@ void ModulesInitializer::initialize()
// OffscreenCanvas context types must be registered with the OffscreenCanvas.
OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanvasRenderingContext2D::Factory()));
+ TransferableExtractor::registerTransferableExtractor(adoptPtr(new TransferableOffscreenCanvasExtractor()));
+
ASSERT(isInitialized());
}

Powered by Google App Engine
This is Rietveld 408576698