| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_dri.h" | 5 #include "ui/ozone/platform/dri/ozone_platform_dri.h" |
| 6 | 6 |
| 7 #include "ui/events/ozone/device/device_manager.h" | 7 #include "ui/events/ozone/device/device_manager.h" |
| 8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" | 8 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" |
| 9 #include "ui/events/ozone/evdev/event_factory_evdev.h" | 9 #include "ui/events/ozone/evdev/event_factory_evdev.h" |
| 10 #include "ui/ozone/ozone_platform.h" | 10 #include "ui/ozone/ozone_platform.h" |
| (...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 public: | 49 public: |
| 50 OzonePlatformDri() | 50 OzonePlatformDri() |
| 51 : dri_(new DriWrapper(kDefaultGraphicsCardPath)), | 51 : dri_(new DriWrapper(kDefaultGraphicsCardPath)), |
| 52 surface_generator_(new DriSurfaceGenerator(dri_.get())), | 52 surface_generator_(new DriSurfaceGenerator(dri_.get())), |
| 53 screen_manager_(new ScreenManager(dri_.get(), | 53 screen_manager_(new ScreenManager(dri_.get(), |
| 54 surface_generator_.get())), | 54 surface_generator_.get())), |
| 55 device_manager_(CreateDeviceManager()) {} | 55 device_manager_(CreateDeviceManager()) {} |
| 56 virtual ~OzonePlatformDri() {} | 56 virtual ~OzonePlatformDri() {} |
| 57 | 57 |
| 58 // OzonePlatform: | 58 // OzonePlatform: |
| 59 virtual gfx::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { | 59 virtual ui::SurfaceFactoryOzone* GetSurfaceFactoryOzone() OVERRIDE { |
| 60 return surface_factory_ozone_.get(); | 60 return surface_factory_ozone_.get(); |
| 61 } | 61 } |
| 62 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { | 62 virtual EventFactoryOzone* GetEventFactoryOzone() OVERRIDE { |
| 63 return event_factory_ozone_.get(); | 63 return event_factory_ozone_.get(); |
| 64 } | 64 } |
| 65 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { | 65 virtual CursorFactoryOzone* GetCursorFactoryOzone() OVERRIDE { |
| 66 return cursor_factory_ozone_.get(); | 66 return cursor_factory_ozone_.get(); |
| 67 } | 67 } |
| 68 #if defined(OS_CHROMEOS) | 68 #if defined(OS_CHROMEOS) |
| 69 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() | 69 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() |
| (...skipping 30 matching lines...) Expand all Loading... |
| 100 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; | 100 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; |
| 101 | 101 |
| 102 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); | 102 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 } // namespace | 105 } // namespace |
| 106 | 106 |
| 107 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } | 107 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } |
| 108 | 108 |
| 109 } // namespace ui | 109 } // namespace ui |
| OLD | NEW |