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

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: update layout test results 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 4377ca9c4b826b8b2a74ef1581433cddcba872aa..2f3e669b0fb5ba668f70a606c54e95e5ac6a7d97 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"
@@ -53,6 +55,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