| 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 <stdlib.h> | 8 #include <stdlib.h> |
| 9 #include <gbm.h> | 9 #include <gbm.h> |
| 10 | 10 |
| 11 #include "ui/base/cursor/ozone/cursor_factory_ozone.h" | |
| 12 #include "ui/events/ozone/device/device_manager.h" | 11 #include "ui/events/ozone/device/device_manager.h" |
| 13 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 12 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| 13 #include "ui/ozone/factories/cursor_factory_ozone.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 | 20 |
| 21 #if defined(OS_CHROMEOS) | 21 #if defined(OS_CHROMEOS) |
| 22 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" | 22 #include "ui/ozone/common/chromeos/native_display_delegate_ozone.h" |
| 23 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" | 23 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 57 | 57 |
| 58 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceGenerator); | 58 DISALLOW_COPY_AND_ASSIGN(GbmSurfaceGenerator); |
| 59 }; | 59 }; |
| 60 | 60 |
| 61 class OzonePlatformGbm : public OzonePlatform { | 61 class OzonePlatformGbm : public OzonePlatform { |
| 62 public: | 62 public: |
| 63 OzonePlatformGbm() {} | 63 OzonePlatformGbm() {} |
| 64 virtual ~OzonePlatformGbm() {} | 64 virtual ~OzonePlatformGbm() {} |
| 65 | 65 |
| 66 // OzonePlatform: | 66 // OzonePlatform: |
| 67 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 67 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
| 68 return surface_factory_ozone_.get(); | 68 return surface_factory_ozone_.get(); |
| 69 } | 69 } |
| 70 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 70 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
| 71 return event_factory_ozone_.get(); | 71 return event_factory_ozone_.get(); |
| 72 } | 72 } |
| 73 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 73 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
| 74 return cursor_factory_ozone_.get(); | 74 return cursor_factory_ozone_.get(); |
| 75 } | 75 } |
| 76 #if defined(OS_CHROMEOS) | 76 #if defined(OS_CHROMEOS) |
| 77 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 77 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 118 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 118 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
| 119 | 119 |
| 120 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); | 120 DISALLOW_COPY_AND_ASSIGN(OzonePlatformGbm); |
| 121 }; | 121 }; |
| 122 | 122 |
| 123 } // namespace | 123 } // namespace |
| 124 | 124 |
| 125 OzonePlatform* CreateOzonePlatformGbm() { return new OzonePlatformGbm; } | 125 OzonePlatform* CreateOzonePlatformGbm() { return new OzonePlatformGbm; } |
| 126 | 126 |
| 127 } // namespace ui | 127 } // namespace ui |
| OLD | NEW |