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

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: address haraken's comments, need bots to test 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..ad33c2f46ef23a1c4af1c384265fcd18cc574f30 100644
--- a/third_party/WebKit/Source/modules/ModulesInitializer.cpp
+++ b/third_party/WebKit/Source/modules/ModulesInitializer.cpp
@@ -5,6 +5,7 @@
#include "ModulesInitializer.h"
#include "bindings/modules/v8/ModuleBindingsInitializer.h"
+#include "bindings/modules/v8/TransferablesForModules.h"
#include "core/EventTypeNames.h"
#include "core/dom/Document.h"
#include "core/html/HTMLCanvasElement.h"
@@ -54,6 +55,10 @@ void ModulesInitializer::initialize()
// OffscreenCanvas context types must be registered with the OffscreenCanvas.
OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanvasRenderingContext2D::Factory()));
+ Transferables::registerFactory([]() -> Transferables* {
haraken 2016/04/21 00:29:03 Move this method into ModuleBindingsInitializer::i
xidachen 2016/04/21 15:32:48 Done.
+ return new TransferablesForModules;
+ });
+
ASSERT(isInitialized());
}

Powered by Google App Engine
This is Rietveld 408576698