OLD | NEW |
| (Empty) |
1 // Copyright 2015 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 "platform/graphics/test/FakeGraphicsLayerFactory.h" | |
6 | |
7 #include "platform/graphics/GraphicsLayer.h" | |
8 #include "wtf/PassOwnPtr.h" | |
9 #include "wtf/StdLibExtras.h" | |
10 | |
11 namespace blink { | |
12 | |
13 FakeGraphicsLayerFactory::FakeGraphicsLayerFactory() | |
14 { | |
15 } | |
16 | |
17 // static | |
18 FakeGraphicsLayerFactory* FakeGraphicsLayerFactory::instance() | |
19 { | |
20 DEFINE_STATIC_LOCAL(FakeGraphicsLayerFactory, factory, ()); | |
21 return &factory; | |
22 } | |
23 | |
24 PassOwnPtr<GraphicsLayer> FakeGraphicsLayerFactory::createGraphicsLayer(Graphics
LayerClient* client) | |
25 { | |
26 return adoptPtr(new GraphicsLayer(client)); | |
27 } | |
28 | |
29 } // namespace blink | |
OLD | NEW |