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

Side by Side Diff: ui/ozone/platform/dri/native_display_delegate_dri.h

Issue 908993003: [Ozone-Dri] Rename DriWrapper to DrmDevice (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@udl3-pass-drm-fd
Patch Set: rebased Created 5 years, 9 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
OLDNEW
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 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 5 #ifndef UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 6 #define UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
7 7
8 #include "base/memory/ref_counted.h" 8 #include "base/memory/ref_counted.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/scoped_vector.h" 10 #include "base/memory/scoped_vector.h"
11 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" 11 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
12 12
13 namespace base { 13 namespace base {
14 class FilePath; 14 class FilePath;
15 class SingleThreadTaskRunner; 15 class SingleThreadTaskRunner;
16 struct FileDescriptor; 16 struct FileDescriptor;
17 } 17 }
18 18
19 namespace ui { 19 namespace ui {
20 20
21 class DeviceManager; 21 class DeviceManager;
22 class DisplaySnapshotDri; 22 class DisplaySnapshotDri;
23 class DisplayMode; 23 class DisplayMode;
24 class DisplayModeDri; 24 class DisplayModeDri;
25 class DriWrapper; 25 class DrmDevice;
26 class DrmDeviceGenerator; 26 class DrmDeviceGenerator;
27 class ScreenManager; 27 class ScreenManager;
28 28
29 class NativeDisplayDelegateDri { 29 class NativeDisplayDelegateDri {
30 public: 30 public:
31 NativeDisplayDelegateDri(ScreenManager* screen_manager, 31 NativeDisplayDelegateDri(ScreenManager* screen_manager,
32 const scoped_refptr<DriWrapper>& primary_device, 32 const scoped_refptr<DrmDevice>& primary_device,
33 scoped_ptr<DrmDeviceGenerator> device_generator); 33 scoped_ptr<DrmDeviceGenerator> device_generator);
34 ~NativeDisplayDelegateDri(); 34 ~NativeDisplayDelegateDri();
35 35
36 void InitializeIOTaskRunner( 36 void InitializeIOTaskRunner(
37 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner); 37 const scoped_refptr<base::SingleThreadTaskRunner>& task_runner);
38 38
39 // Returns a list of the connected displays. When this is called the list of 39 // Returns a list of the connected displays. When this is called the list of
40 // displays is refreshed. 40 // displays is refreshed.
41 std::vector<DisplaySnapshot_Params> GetDisplays(); 41 std::vector<DisplaySnapshot_Params> GetDisplays();
42 42
(...skipping 27 matching lines...) Expand all
70 70
71 // Notify ScreenManager of all the displays that were present before the 71 // Notify ScreenManager of all the displays that were present before the
72 // update but are gone after the update. 72 // update but are gone after the update.
73 void NotifyScreenManager( 73 void NotifyScreenManager(
74 const std::vector<DisplaySnapshotDri*>& new_displays, 74 const std::vector<DisplaySnapshotDri*>& new_displays,
75 const std::vector<DisplaySnapshotDri*>& old_displays) const; 75 const std::vector<DisplaySnapshotDri*>& old_displays) const;
76 76
77 ScreenManager* screen_manager_; // Not owned. 77 ScreenManager* screen_manager_; // Not owned.
78 scoped_ptr<DrmDeviceGenerator> drm_device_generator_; 78 scoped_ptr<DrmDeviceGenerator> drm_device_generator_;
79 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_; 79 scoped_refptr<base::SingleThreadTaskRunner> io_task_runner_;
80 std::vector<scoped_refptr<DriWrapper>> devices_; 80 std::vector<scoped_refptr<DrmDevice>> devices_;
81 // Modes can be shared between different displays, so we need to keep track 81 // Modes can be shared between different displays, so we need to keep track
82 // of them independently for cleanup. 82 // of them independently for cleanup.
83 ScopedVector<const DisplayMode> cached_modes_; 83 ScopedVector<const DisplayMode> cached_modes_;
84 ScopedVector<DisplaySnapshotDri> cached_displays_; 84 ScopedVector<DisplaySnapshotDri> cached_displays_;
85 85
86 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri); 86 DISALLOW_COPY_AND_ASSIGN(NativeDisplayDelegateDri);
87 }; 87 };
88 88
89 } // namespace ui 89 } // namespace ui
90 90
91 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_ 91 #endif // UI_OZONE_PLATFORM_DRI_NATIVE_DISPLAY_DELEGATE_DRI_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/dri/hardware_display_plane_manager_unittest.cc ('k') | ui/ozone/platform/dri/native_display_delegate_dri.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698