OLD | NEW |
| (Empty) |
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 | |
3 // found in the LICENSE file. | |
4 | |
5 #include "config.h" | |
6 #include "core/html/canvas/CanvasRenderingContextFactory.h" | |
7 | |
8 #include "core/html/HTMLCanvasElement.h" | |
9 #include "core/html/canvas/CanvasRenderingContext2D.h" | |
10 #include "wtf/OwnPtr.h" | |
11 | |
12 namespace blink { | |
13 | |
14 void CanvasRenderingContextFactory::init() | |
15 { | |
16 OwnPtr<CanvasRenderingContextFactory> canvas2dFactory = adoptPtr(new CanvasR
enderingContext2D::Factory()); | |
17 HTMLCanvasElement::registerRenderingContextFactory(canvas2dFactory.release()
); | |
18 } | |
19 | |
20 } // namespace blink | |
OLD | NEW |