OLD | NEW |
---|---|
(Empty) | |
1 // Copyright (c) 2013 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 "base/command_line.h" | |
6 #include "base/logging.h" | |
7 #include "ui/ozone/ozone_platform.h" | |
8 | |
9 namespace ui { | |
10 | |
11 OzonePlatform::OzonePlatform() {} | |
12 | |
13 OzonePlatform::~OzonePlatform() { | |
14 gfx::SurfaceFactoryOzone::SetInstance(NULL); | |
rjkroege
2013/10/25 18:24:02
I will be curious if this ever results in a null i
| |
15 ui::EventFactoryOzone::SetInstance(NULL); | |
16 } | |
17 | |
18 // static | |
19 OzonePlatform* OzonePlatform::Create() { | |
20 OzonePlatform* platform = CreateDefaultOzonePlatform(); | |
21 | |
22 gfx::SurfaceFactoryOzone::SetInstance(platform->GetSurfaceFactoryOzone()); | |
23 ui::EventFactoryOzone::SetInstance(platform->GetEventFactoryOzone()); | |
24 | |
25 return platform; | |
26 } | |
27 | |
28 } // namespace ui | |
OLD | NEW |