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

Side by Side Diff: ui/base/ozone/ozone_platform.cc

Issue 44933002: Implement OzonePlatform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add external_ozone_platform_files, external_ozone_platform_deps Created 7 years, 1 month 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 (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/base/ozone/ozone_platform.h"
8
9 namespace ui {
10
11 OzonePlatform::OzonePlatform() {}
12
13 OzonePlatform::~OzonePlatform() {
14 gfx::SurfaceFactoryOzone::SetInstance(NULL);
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
vignatti (out of this project) 2013/10/28 15:26:44 In the description you mention that it "depends on
spang 2013/10/28 15:42:30 We can't actually add a dependency from ui/base to
vignatti (out of this project) 2013/10/28 16:08:50 ok, I see. I'm very interested then to hear what'
25 return platform;
26 }
27
28 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698