OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 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 | 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/ozone/platform/cast/ozone_platform_cast.h" | 5 #include "ui/ozone/platform/cast/ozone_platform_cast.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "chromecast/public/cast_egl_platform.h" | 8 #include "chromecast/public/cast_egl_platform.h" |
9 #include "chromecast/public/cast_egl_platform_shlib.h" | 9 #include "chromecast/public/cast_egl_platform_shlib.h" |
10 #include "ui/ozone/common/native_display_delegate_ozone.h" | 10 #include "ui/ozone/common/native_display_delegate_ozone.h" |
11 #include "ui/ozone/platform/cast/gpu_platform_support_cast.h" | 11 #include "ui/ozone/platform/cast/gpu_platform_support_cast.h" |
12 #include "ui/ozone/platform/cast/overlay_manager_cast.h" | 12 #include "ui/ozone/platform/cast/overlay_manager_cast.h" |
13 #include "ui/ozone/platform/cast/platform_window_cast.h" | 13 #include "ui/ozone/platform/cast/platform_window_cast.h" |
14 #include "ui/ozone/platform/cast/surface_factory_cast.h" | 14 #include "ui/ozone/platform/cast/surface_factory_cast.h" |
15 #include "ui/ozone/public/cursor_factory_ozone.h" | 15 #include "ui/ozone/public/cursor_factory_ozone.h" |
16 #include "ui/ozone/public/gpu_platform_support_host.h" | 16 #include "ui/ozone/public/gpu_platform_support_host.h" |
17 #include "ui/ozone/public/input_controller.h" | 17 #include "ui/ozone/public/input_controller.h" |
| 18 #include "ui/ozone/public/native_pixmap_manager.h" |
18 #include "ui/ozone/public/ozone_platform.h" | 19 #include "ui/ozone/public/ozone_platform.h" |
19 #include "ui/ozone/public/system_input_injector.h" | 20 #include "ui/ozone/public/system_input_injector.h" |
20 | 21 |
21 using chromecast::CastEglPlatform; | 22 using chromecast::CastEglPlatform; |
22 | 23 |
23 namespace ui { | 24 namespace ui { |
24 namespace { | 25 namespace { |
25 | 26 |
26 // Ozone platform implementation for Cast. Implements functionality | 27 // Ozone platform implementation for Cast. Implements functionality |
27 // common to all Cast implementations: | 28 // common to all Cast implementations: |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
95 } // namespace | 96 } // namespace |
96 | 97 |
97 OzonePlatform* CreateOzonePlatformCast() { | 98 OzonePlatform* CreateOzonePlatformCast() { |
98 const std::vector<std::string>& argv = | 99 const std::vector<std::string>& argv = |
99 base::CommandLine::ForCurrentProcess()->argv(); | 100 base::CommandLine::ForCurrentProcess()->argv(); |
100 scoped_ptr<chromecast::CastEglPlatform> platform( | 101 scoped_ptr<chromecast::CastEglPlatform> platform( |
101 chromecast::CastEglPlatformShlib::Create(argv)); | 102 chromecast::CastEglPlatformShlib::Create(argv)); |
102 return new OzonePlatformCast(platform.Pass()); | 103 return new OzonePlatformCast(platform.Pass()); |
103 } | 104 } |
104 | 105 |
| 106 NativePixmapManager* CreateNativePixmapManagerCast() { |
| 107 return CreateStubNativePixmapManager(); |
| 108 } |
| 109 |
105 } // namespace ui | 110 } // namespace ui |
OLD | NEW |