OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "ui/views/widget/desktop_aura/desktop_screen.h" | 5 #include "ui/views/widget/desktop_aura/desktop_screen.h" |
6 | 6 |
7 #include "ui/ozone/ozone_platform.h" | |
8 #include "ui/views/widget/desktop_aura/desktop_factory_ozone.h" | 7 #include "ui/views/widget/desktop_aura/desktop_factory_ozone.h" |
9 | 8 |
10 namespace views { | 9 namespace views { |
11 | 10 |
12 gfx::Screen* CreateDesktopScreen() { | 11 gfx::Screen* CreateDesktopScreen() { |
13 ui::OzonePlatform::Initialize(); | |
14 return DesktopFactoryOzone::GetInstance()->CreateDesktopScreen(); | 12 return DesktopFactoryOzone::GetInstance()->CreateDesktopScreen(); |
15 } | 13 } |
16 | 14 |
17 } // namespace views | 15 } // namespace views |
OLD | NEW |