| 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 "ModulesInitializer.h" | 5 #include "ModulesInitializer.h" |
| 6 | 6 |
| 7 #include "bindings/core/v8/TransferableExtractor.h" |
| 7 #include "bindings/modules/v8/ModuleBindingsInitializer.h" | 8 #include "bindings/modules/v8/ModuleBindingsInitializer.h" |
| 9 #include "bindings/modules/v8/TransferableOffscreenCanvasExtractor.h" |
| 8 #include "core/EventTypeNames.h" | 10 #include "core/EventTypeNames.h" |
| 9 #include "core/dom/Document.h" | 11 #include "core/dom/Document.h" |
| 10 #include "core/html/HTMLCanvasElement.h" | 12 #include "core/html/HTMLCanvasElement.h" |
| 11 #include "modules/EventModulesFactory.h" | 13 #include "modules/EventModulesFactory.h" |
| 12 #include "modules/EventModulesNames.h" | 14 #include "modules/EventModulesNames.h" |
| 13 #include "modules/EventTargetModulesNames.h" | 15 #include "modules/EventTargetModulesNames.h" |
| 14 #include "modules/IndexedDBNames.h" | 16 #include "modules/IndexedDBNames.h" |
| 15 #include "modules/accessibility/AXObjectCacheImpl.h" | 17 #include "modules/accessibility/AXObjectCacheImpl.h" |
| 16 #include "modules/canvas2d/CanvasRenderingContext2D.h" | 18 #include "modules/canvas2d/CanvasRenderingContext2D.h" |
| 17 #include "modules/compositorworker/CompositorWorkerThread.h" | 19 #include "modules/compositorworker/CompositorWorkerThread.h" |
| (...skipping 29 matching lines...) Expand all Loading... |
| 47 | 49 |
| 48 // Canvas context types must be registered with the HTMLCanvasElement. | 50 // Canvas context types must be registered with the HTMLCanvasElement. |
| 49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); | 51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender
ingContext2D::Factory())); |
| 50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); | 52 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi
ngContext::Factory())); |
| 51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); | 53 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render
ingContext::Factory())); |
| 52 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); | 54 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR
enderingContext::Factory())); |
| 53 | 55 |
| 54 // OffscreenCanvas context types must be registered with the OffscreenCanvas
. | 56 // OffscreenCanvas context types must be registered with the OffscreenCanvas
. |
| 55 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva
sRenderingContext2D::Factory())); | 57 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva
sRenderingContext2D::Factory())); |
| 56 | 58 |
| 59 TransferableExtractor::registerTransferableExtractor(adoptPtr(new Transferab
leOffscreenCanvasExtractor())); |
| 60 |
| 57 ASSERT(isInitialized()); | 61 ASSERT(isInitialized()); |
| 58 } | 62 } |
| 59 | 63 |
| 60 void ModulesInitializer::shutdown() | 64 void ModulesInitializer::shutdown() |
| 61 { | 65 { |
| 62 ASSERT(isInitialized()); | 66 ASSERT(isInitialized()); |
| 63 DatabaseManager::terminateDatabaseThread(); | 67 DatabaseManager::terminateDatabaseThread(); |
| 64 CompositorWorkerThread::clearSharedBackingThread(); | 68 CompositorWorkerThread::clearSharedBackingThread(); |
| 65 CoreInitializer::shutdown(); | 69 CoreInitializer::shutdown(); |
| 66 } | 70 } |
| 67 | 71 |
| 68 } // namespace blink | 72 } // namespace blink |
| OLD | NEW |