OLD | NEW |
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "InitModules.h" | 5 #include "InitModules.h" |
6 | 6 |
7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" | 7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
8 #include "core/EventTypeNames.h" | 8 #include "core/EventTypeNames.h" |
9 #include "core/dom/Document.h" | 9 #include "core/dom/Document.h" |
10 #include "core/html/HTMLCanvasElement.h" | 10 #include "core/html/HTMLCanvasElement.h" |
11 #include "modules/EventModulesFactory.h" | 11 #include "modules/EventModulesFactory.h" |
12 #include "modules/EventModulesNames.h" | 12 #include "modules/EventModulesNames.h" |
13 #include "modules/EventTargetModulesNames.h" | 13 #include "modules/EventTargetModulesNames.h" |
14 #include "modules/IndexedDBNames.h" | 14 #include "modules/IndexedDBNames.h" |
15 #include "modules/accessibility/AXObjectCacheImpl.h" | 15 #include "modules/accessibility/AXObjectCacheImpl.h" |
16 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 16 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
17 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" | 17 #include "modules/filesystem/DraggedIsolatedFileSystemImpl.h" |
18 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" | 18 #include "modules/imagebitmap/ImageBitmapRenderingContext.h" |
| 19 #include "modules/offscreencanvas/OffscreenCanvas.h" |
| 20 #include "modules/offscreencanvas2d/OffscreenCanvasRenderingContext2D.h" |
19 #include "modules/webdatabase/DatabaseManager.h" | 21 #include "modules/webdatabase/DatabaseManager.h" |
20 #include "modules/webgl/WebGL2RenderingContext.h" | 22 #include "modules/webgl/WebGL2RenderingContext.h" |
21 #include "modules/webgl/WebGLRenderingContext.h" | 23 #include "modules/webgl/WebGLRenderingContext.h" |
22 | 24 |
23 namespace blink { | 25 namespace blink { |
24 | 26 |
25 void ModulesInitializer::init() | 27 void ModulesInitializer::init() |
26 { | 28 { |
27 ASSERT(!isInitialized()); | 29 ASSERT(!isInitialized()); |
28 | 30 |
(...skipping 12 matching lines...) Expand all Loading... |
41 DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystemImpl::prepareForDat
aObject); | 43 DraggedIsolatedFileSystem::init(DraggedIsolatedFileSystemImpl::prepareForDat
aObject); |
42 | 44 |
43 CoreInitializer::init(); | 45 CoreInitializer::init(); |
44 | 46 |
45 // Canvas context types must be registered with the HTMLCanvasElement. | 47 // Canvas context types must be registered with the HTMLCanvasElement. |
46 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); | 48 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); |
47 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); | 49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); |
48 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); | 50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); |
49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); | 51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); |
50 | 52 |
| 53 // OffscreenCanvas context types must be registered with the OffscreenCanvas
. |
| 54 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva
sRenderingContext2D::Factory())); |
| 55 |
51 ASSERT(isInitialized()); | 56 ASSERT(isInitialized()); |
52 } | 57 } |
53 | 58 |
54 void ModulesInitializer::terminateThreads() | 59 void ModulesInitializer::terminateThreads() |
55 { | 60 { |
56 DatabaseManager::terminateDatabaseThread(); | 61 DatabaseManager::terminateDatabaseThread(); |
57 } | 62 } |
58 | 63 |
59 } // namespace blink | 64 } // namespace blink |
OLD | NEW |