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" |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
60 } | 60 } |
61 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 61 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
62 PlatformWindowDelegate* delegate, | 62 PlatformWindowDelegate* delegate, |
63 const gfx::Rect& bounds) override { | 63 const gfx::Rect& bounds) override { |
64 return make_scoped_ptr<PlatformWindow>( | 64 return make_scoped_ptr<PlatformWindow>( |
65 new PlatformWindowCast(delegate, bounds)); | 65 new PlatformWindowCast(delegate, bounds)); |
66 } | 66 } |
67 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 67 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
68 return make_scoped_ptr(new NativeDisplayDelegateOzone()); | 68 return make_scoped_ptr(new NativeDisplayDelegateOzone()); |
69 } | 69 } |
| 70 base::ScopedFD OpenClientNativePixmapDevice() const override { |
| 71 return base::ScopedFD(); |
| 72 } |
70 | 73 |
71 void InitializeUI() override { | 74 void InitializeUI() override { |
72 overlay_manager_.reset(new OverlayManagerCast()); | 75 overlay_manager_.reset(new OverlayManagerCast()); |
73 cursor_factory_.reset(new CursorFactoryOzone()); | 76 cursor_factory_.reset(new CursorFactoryOzone()); |
74 input_controller_ = CreateStubInputController(); | 77 input_controller_ = CreateStubInputController(); |
75 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); | 78 gpu_platform_support_host_.reset(CreateStubGpuPlatformSupportHost()); |
76 } | 79 } |
77 void InitializeGPU() override { | 80 void InitializeGPU() override { |
78 surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass())); | 81 surface_factory_.reset(new SurfaceFactoryCast(egl_platform_.Pass())); |
79 gpu_platform_support_.reset( | 82 gpu_platform_support_.reset( |
(...skipping 16 matching lines...) Expand all Loading... |
96 | 99 |
97 OzonePlatform* CreateOzonePlatformCast() { | 100 OzonePlatform* CreateOzonePlatformCast() { |
98 const std::vector<std::string>& argv = | 101 const std::vector<std::string>& argv = |
99 base::CommandLine::ForCurrentProcess()->argv(); | 102 base::CommandLine::ForCurrentProcess()->argv(); |
100 scoped_ptr<chromecast::CastEglPlatform> platform( | 103 scoped_ptr<chromecast::CastEglPlatform> platform( |
101 chromecast::CastEglPlatformShlib::Create(argv)); | 104 chromecast::CastEglPlatformShlib::Create(argv)); |
102 return new OzonePlatformCast(platform.Pass()); | 105 return new OzonePlatformCast(platform.Pass()); |
103 } | 106 } |
104 | 107 |
105 } // namespace ui | 108 } // namespace ui |
OLD | NEW |