 Chromium Code Reviews
 Chromium Code Reviews Issue 1862033002:
  Make OffscreenCanvas Transferable  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master
    
  
    Issue 1862033002:
  Make OffscreenCanvas Transferable  (Closed) 
  Base URL: https://chromium.googlesource.com/chromium/src.git@master| 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()); | 
| } |