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

Side by Side Diff: third_party/WebKit/Source/platform/graphics/test/FakeGraphicsLayerFactory.cpp

Issue 1810853002: Blink Platform: Erase GraphicsLayerFactory. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698