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

Side by Side Diff: third_party/WebKit/Source/modules/ModulesInitializer.cpp

Issue 1881563003: Implement OffscreenCanvas.getContext('webgl') (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: offscreenCanvas.getContext('webgl') crashes on worker 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 unified diff | Download patch
OLDNEW
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/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"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CoreInitializer::initialize(); 46 CoreInitializer::initialize();
47 47
48 // Canvas context types must be registered with the HTMLCanvasElement. 48 // Canvas context types must be registered with the HTMLCanvasElement.
49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender ingContext2D::Factory())); 49 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new CanvasRender ingContext2D::Factory()));
50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi ngContext::Factory())); 50 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGLRenderi ngContext::Factory()));
51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render ingContext::Factory())); 51 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new WebGL2Render ingContext::Factory()));
52 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR enderingContext::Factory())); 52 HTMLCanvasElement::registerRenderingContextFactory(adoptPtr(new ImageBitmapR enderingContext::Factory()));
53 53
54 // OffscreenCanvas context types must be registered with the OffscreenCanvas . 54 // OffscreenCanvas context types must be registered with the OffscreenCanvas .
55 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva sRenderingContext2D::Factory())); 55 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new OffscreenCanva sRenderingContext2D::Factory()));
56 OffscreenCanvas::registerRenderingContextFactory(adoptPtr(new WebGLRendering Context::OffscreenCanvasFactory()));
56 57
57 ASSERT(isInitialized()); 58 ASSERT(isInitialized());
58 } 59 }
59 60
60 void ModulesInitializer::shutdown() 61 void ModulesInitializer::shutdown()
61 { 62 {
62 ASSERT(isInitialized()); 63 ASSERT(isInitialized());
63 DatabaseManager::terminateDatabaseThread(); 64 DatabaseManager::terminateDatabaseThread();
64 CompositorWorkerThread::clearSharedBackingThread(); 65 CompositorWorkerThread::clearSharedBackingThread();
65 CoreInitializer::shutdown(); 66 CoreInitializer::shutdown();
66 } 67 }
67 68
68 } // namespace blink 69 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698