| 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/dri/ozone_platform_gbm.h" | 5 #include "ui/ozone/platform/dri/ozone_platform_gbm.h" |
| 6 | 6 |
| 7 #include <dlfcn.h> | 7 #include <dlfcn.h> |
| 8 #include <gbm.h> | 8 #include <gbm.h> |
| 9 #include <stdlib.h> | 9 #include <stdlib.h> |
| 10 | 10 |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 } | 87 } |
| 88 CursorFactoryOzone* GetCursorFactoryOzone() override { | 88 CursorFactoryOzone* GetCursorFactoryOzone() override { |
| 89 return cursor_factory_ozone_.get(); | 89 return cursor_factory_ozone_.get(); |
| 90 } | 90 } |
| 91 GpuPlatformSupport* GetGpuPlatformSupport() override { | 91 GpuPlatformSupport* GetGpuPlatformSupport() override { |
| 92 return gpu_platform_support_.get(); | 92 return gpu_platform_support_.get(); |
| 93 } | 93 } |
| 94 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { | 94 GpuPlatformSupportHost* GetGpuPlatformSupportHost() override { |
| 95 return gpu_platform_support_host_.get(); | 95 return gpu_platform_support_host_.get(); |
| 96 } | 96 } |
| 97 scoped_ptr<SystemInputInjector> CreateSystemInputInjector() override { |
| 98 return event_factory_ozone_->CreateSystemInputInjector(); |
| 99 } |
| 97 scoped_ptr<PlatformWindow> CreatePlatformWindow( | 100 scoped_ptr<PlatformWindow> CreatePlatformWindow( |
| 98 PlatformWindowDelegate* delegate, | 101 PlatformWindowDelegate* delegate, |
| 99 const gfx::Rect& bounds) override { | 102 const gfx::Rect& bounds) override { |
| 100 scoped_ptr<DriWindow> platform_window( | 103 scoped_ptr<DriWindow> platform_window( |
| 101 new DriWindow(delegate, bounds, gpu_platform_support_host_.get(), | 104 new DriWindow(delegate, bounds, gpu_platform_support_host_.get(), |
| 102 event_factory_ozone_.get(), window_manager_.get(), | 105 event_factory_ozone_.get(), window_manager_.get(), |
| 103 display_manager_.get())); | 106 display_manager_.get())); |
| 104 platform_window->Initialize(); | 107 platform_window->Initialize(); |
| 105 return platform_window.Pass(); | 108 return platform_window.Pass(); |
| 106 } | 109 } |
| (...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 169 }; | 172 }; |
| 170 | 173 |
| 171 } // namespace | 174 } // namespace |
| 172 | 175 |
| 173 OzonePlatform* CreateOzonePlatformGbm() { | 176 OzonePlatform* CreateOzonePlatformGbm() { |
| 174 CommandLine* cmd = CommandLine::ForCurrentProcess(); | 177 CommandLine* cmd = CommandLine::ForCurrentProcess(); |
| 175 return new OzonePlatformGbm(cmd->HasSwitch(switches::kOzoneUseSurfaceless)); | 178 return new OzonePlatformGbm(cmd->HasSwitch(switches::kOzoneUseSurfaceless)); |
| 176 } | 179 } |
| 177 | 180 |
| 178 } // namespace ui | 181 } // namespace ui |
| OLD | NEW |