Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Side by Side Diff: ui/ozone/platform/dri/ozone_platform_dri.cc

Issue 402213002: [Ozone] Migrate platform DRI & GBM to platform_window (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 "base/at_exit.h" 7 #include "base/at_exit.h"
8 #include "ui/events/ozone/device/device_manager.h" 8 #include "ui/events/ozone/device/device_manager.h"
9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h" 9 #include "ui/events/ozone/evdev/cursor_delegate_evdev.h"
10 #include "ui/events/ozone/evdev/event_factory_evdev.h" 10 #include "ui/events/ozone/evdev/event_factory_evdev.h"
11 #include "ui/ozone/common/window/platform_window_compat.h"
12 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h" 11 #include "ui/ozone/platform/dri/cursor_factory_evdev_dri.h"
13 #include "ui/ozone/platform/dri/dri_buffer.h" 12 #include "ui/ozone/platform/dri/dri_buffer.h"
14 #include "ui/ozone/platform/dri/dri_surface_factory.h" 13 #include "ui/ozone/platform/dri/dri_surface_factory.h"
14 #include "ui/ozone/platform/dri/dri_window.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/screen_manager.h" 16 #include "ui/ozone/platform/dri/screen_manager.h"
17 #include "ui/ozone/platform/dri/virtual_terminal_manager.h" 17 #include "ui/ozone/platform/dri/virtual_terminal_manager.h"
18 #include "ui/ozone/public/ozone_platform.h" 18 #include "ui/ozone/public/ozone_platform.h"
19 19
20 #if defined(OS_CHROMEOS) 20 #if defined(OS_CHROMEOS)
21 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h" 21 #include "ui/ozone/common/chromeos/touchscreen_device_manager_ozone.h"
22 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h" 22 #include "ui/ozone/platform/dri/chromeos/native_display_delegate_dri.h"
23 #endif 23 #endif
24 24
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
58 } 58 }
59 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE { 59 virtual GpuPlatformSupport* GetGpuPlatformSupport() OVERRIDE {
60 return NULL; // no GPU support 60 return NULL; // no GPU support
61 } 61 }
62 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE { 62 virtual GpuPlatformSupportHost* GetGpuPlatformSupportHost() OVERRIDE {
63 return NULL; // no GPU support 63 return NULL; // no GPU support
64 } 64 }
65 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow( 65 virtual scoped_ptr<PlatformWindow> CreatePlatformWindow(
66 PlatformWindowDelegate* delegate, 66 PlatformWindowDelegate* delegate,
67 const gfx::Rect& bounds) OVERRIDE { 67 const gfx::Rect& bounds) OVERRIDE {
68 return make_scoped_ptr<PlatformWindow>( 68 return scoped_ptr<PlatformWindow>(new DriWindow(delegate, bounds));
69 new PlatformWindowCompat(delegate, bounds));
70 } 69 }
71 #if defined(OS_CHROMEOS) 70 #if defined(OS_CHROMEOS)
72 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate() 71 virtual scoped_ptr<NativeDisplayDelegate> CreateNativeDisplayDelegate()
73 OVERRIDE { 72 OVERRIDE {
74 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri( 73 return scoped_ptr<NativeDisplayDelegate>(new NativeDisplayDelegateDri(
75 dri_.get(), screen_manager_.get(), device_manager_.get())); 74 dri_.get(), screen_manager_.get(), device_manager_.get()));
76 } 75 }
77 virtual scoped_ptr<TouchscreenDeviceManager> 76 virtual scoped_ptr<TouchscreenDeviceManager>
78 CreateTouchscreenDeviceManager() OVERRIDE { 77 CreateTouchscreenDeviceManager() OVERRIDE {
79 return scoped_ptr<TouchscreenDeviceManager>( 78 return scoped_ptr<TouchscreenDeviceManager>(
(...skipping 23 matching lines...) Expand all
103 scoped_ptr<EventFactoryEvdev> event_factory_ozone_; 102 scoped_ptr<EventFactoryEvdev> event_factory_ozone_;
104 103
105 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri); 104 DISALLOW_COPY_AND_ASSIGN(OzonePlatformDri);
106 }; 105 };
107 106
108 } // namespace 107 } // namespace
109 108
110 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; } 109 OzonePlatform* CreateOzonePlatformDri() { return new OzonePlatformDri; }
111 110
112 } // namespace ui 111 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/dri_window.cc ('k') | ui/ozone/platform/dri/ozone_platform_gbm.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698