| 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 |
| 11 #include "base/at_exit.h" | 11 #include "base/at_exit.h" |
| 12 #include "ui/events/ozone/device/device_manager.h" | 12 #include "ui/events/ozone/device/device_manager.h" |
| 13 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 13 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| 14 #include "ui/ozone/ozone_platform.h" | 14 #include "ui/ozone/ozone_platform.h" |
| 15 #include "ui/ozone/platform/dri/dri_wrapper.h" | 15 #include "ui/ozone/platform/dri/dri_wrapper.h" |
| 16 #include "ui/ozone/platform/dri/gbm_surface.h" | 16 #include "ui/ozone/platform/dri/gbm_surface.h" |
| 17 #include "ui/ozone/platform/dri/gbm_surface_factory.h" | 17 #include "ui/ozone/platform/dri/gbm_surface_factory.h" |
| 18 #include "ui/ozone/platform/dri/scanout_surface.h" | 18 #include "ui/ozone/platform/dri/scanout_surface.h" |
| 19 #include "ui/ozone/platform/dri/screen_manager.h" | 19 #include "ui/ozone/platform/dri/screen_manager.h" |
| 20 #include "ui/ozone/platform/dri/virtual_terminal_manager.h" | 20 #include "ui/ozone/platform/dri/virtual_terminal_manager.h" |
| 21 #include "ui/ozone/public/cursor_factory_ozone.h" | 21 #include "ui/ozone/public/cursor_factory_ozone.h" |
| 22 #include "ui/ozone/public/gpu_platform_support.h" |
| 23 #include "ui/ozone/public/gpu_platform_support_host.h" |
| 22 | 24 |
| 23 #if defined(OS_CHROMEOS) | 25 #if defined(OS_CHROMEOS) |
| 24 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" | 26 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" |
| 25 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" | 27 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" |
| 26 #endif | 28 #endif |
| 27 | 29 |
| 28 namespace ui { | 30 namespace ui { |
| 29 | 31 |
| 30 namespace { | 32 namespace { |
| 31 | 33 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 72 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 74 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
| 73 return surface_factory_ozone_.get(); | 75 return surface_factory_ozone_.get(); |
| 74 } | 76 } |
| 75 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 77 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
| 76 return event_factory_ozone_.get(); | 78 return event_factory_ozone_.get(); |
| 77 } | 79 } |
| 78 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 80 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
| 79 return cursor_factory_ozone_.get(); | 81 return cursor_factory_ozone_.get(); |
| 80 } | 82 } |
| 81 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { | 83 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { |
| 82 return gpu_platform_support_.get() | 84 return gpu_platform_support_.get(); |
| 83 } | 85 } |
| 84 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { | 86 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { |
| 85 return gpu_platform_support_host_.get(); | 87 return gpu_platform_support_host_.get(); |
| 86 } | 88 } |
| 87 #if defined(OS_CHROMEOS) | 89 #if defined(OS_CHROMEOS) |
| 88 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 90 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| 89 OVERRIDE { | 91 OVERRIDE { |
| 90 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); | 92 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateOzone()); |
| 91 } | 93 } |
| 92 virtual scoped_ptr<TouchscreenDeviceManager> | 94 virtual scoped_ptr<TouchscreenDeviceManager> |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 137 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; | 139 scoped_ptr<GpuPlatformSupportHost> gpu_platform_support_host_; |
| 138 | 140 |
| 139 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); | 141 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); |
| 140 }; | 142 }; |
| 141 | 143 |
| 142 } // namespace | 144 } // namespace |
| 143 | 145 |
| 144 OzonePlatform* CreateOzonePlatformGbm() { return new OzonePlatformGbm; } | 146 OzonePlatform* CreateOzonePlatformGbm() { return new OzonePlatformGbm; } |
| 145 | 147 |
| 146 } // namespace ui | 148 } // namespace ui |
| OLD | NEW |