| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/drm/ozone_platform_gbm.h" | 5 #include "ui/ozone/platform/drm/ozone_platform_gbm.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <fcntl.h> | 8 #include <fcntl.h> |
| 9 #include <gbm.h> | 9 #include <gbm.h> |
| 10 #include <stdlib.h> | 10 #include <stdlib.h> |
| (...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 97 return gpu_platform_support_host_.get(); | 97 return gpu_platform_support_host_.get(); |
| 98 } | 98 } |
| 99 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { | 99 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 100 return event_factory_ozone_->CreateSystemInputInjector(); | 100 return event_factory_ozone_->CreateSystemInputInjector(); |
| 101 } | 101 } |
| 102 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 102 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 103 PlatformWindowDelegate* delegate, | 103 PlatformWindowDelegate* delegate, |
| 104 const gfx::Rect& bounds) override { | 104 const gfx::Rect& bounds) override { |
| 105 TRACE_EVENT0("ozone", "CreatePlatformWindow"); | 105 TRACE_EVENT0("ozone", "CreatePlatformWindow"); |
| 106 | 106 |
| 107 scoped_ptr<DrmWindowHost> platform_window( | 107 scoped_ptr<DrmWindowHost> platform_window(new DrmWindowHost( |
| 108 new DrmWindowHost(delegate, bounds, gpu_platform_support_host_.get(), | 108 delegate, bounds, gpu_platform_support_host_.get(), |
| 109 event_factory_ozone_.get(), cursor_.get(), | 109 event_factory_ozone_.get(), cursor_.get(), window_manager_.get(), |
| 110 window_manager_.get(), display_manager_.get())); | 110 display_manager_.get(), overlay_manager_.get())); |
| 111 TRACE_EVENT0("ozone", "CreatePlatformWindow Initialize platform_window"); | 111 TRACE_EVENT0("ozone", "CreatePlatformWindow Initialize platform_window"); |
| 112 platform_window->Initialize(); | 112 platform_window->Initialize(); |
| 113 return std::move(platform_window); | 113 return std::move(platform_window); |
| 114 } | 114 } |
| 115 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { | 115 scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() override { |
| 116 return make_scoped_ptr( | 116 return make_scoped_ptr( |
| 117 new DrmNativeDisplayDelegate(display_manager_.get())); | 117 new DrmNativeDisplayDelegate(display_manager_.get())); |
| 118 } | 118 } |
| 119 base::ScopedFD OpenClientNativePixmapDevice() const override { | 119 base::ScopedFD OpenClientNativePixmapDevice() const override { |
| 120 #if defined(USE_VGEM_MAP) | 120 #if defined(USE_VGEM_MAP) |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 210 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); | 210 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); |
| 211 }; | 211 }; |
| 212 | 212 |
| 213 } // namespace | 213 } // namespace |
| 214 | 214 |
| 215 OzonePlatform* CreateOzonePlatformGbm() { | 215 OzonePlatform* CreateOzonePlatformGbm() { |
| 216 return new OzonePlatformGbm; | 216 return new OzonePlatformGbm; |
| 217 } | 217 } |
| 218 | 218 |
| 219 } // namespace ui | 219 } // namespace ui |
| OLD | NEW |