| Index: third_party/WebKit/Source/modules/InitModules.cpp
|
| diff --git a/third_party/WebKit/Source/modules/InitModules.cpp b/third_party/WebKit/Source/modules/InitModules.cpp
|
| index a0663452d2d6fd815dd0695722bc11e9dc119a0d..a81c06b63da11df35fd0d8f4339816f9c100775d 100644
|
| --- a/third_party/WebKit/Source/modules/InitModules.cpp
|
| +++ b/third_party/WebKit/Source/modules/InitModules.cpp
|
| @@ -16,6 +16,8 @@
|
| #include "modules/canvas2d/CanvasRenderingContext2D.h"
|
| #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h"
|
| #include "modules/imagebitmap/ImageBitmapRenderingContext.h"
|
| +#include "modules/offscreencanvas/OffscreenCanvas.h"
|
| +#include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h"
|
| #include "modules/webdatabase/DatabaseManager.h"
|
| #include "modules/webgl/WebGL2RenderingContext.h"
|
| #include "modules/webgl/WebGLRenderingContext.h"
|
| @@ -48,6 +50,9 @@ void ModulesInitializer::init()
|
| HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2RenderingContext::Factory()));
|
| HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapRenderingContext::Factory()));
|
|
|
| + // OffscreenCanvas context types must be registered with the OffscreenCanvas.
|
| + OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanvasRenderingContext2D::Factory()));
|
| +
|
| ASSERT(isInitialized());
|
| }
|
|
|
|
|