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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_device.h

Issue 1056793007: [3/4][Ozone-Drm] Use numeric ID to map to callback (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@move-all-hotplug
Patch Set: Created 5 years, 8 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_DRM_GPU_DRM_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after
170 170
171 protected: 171 protected:
172 friend class base::RefCountedThreadSafe<DrmDevice>; 172 friend class base::RefCountedThreadSafe<DrmDevice>;
173 173
174 virtual ~DrmDevice(); 174 virtual ~DrmDevice();
175 175
176 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_; 176 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_;
177 177
178 private: 178 private:
179 class IOWatcher; 179 class IOWatcher;
180 class PageFlipManager;
180 181
181 // Path to DRM device. 182 // Path to DRM device.
182 const base::FilePath device_path_; 183 const base::FilePath device_path_;
183 184
184 // DRM device. 185 // DRM device.
185 base::File file_; 186 base::File file_;
186 187
187 // Helper thread to perform IO listener operations. 188 // Helper thread to perform IO listener operations.
188 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; 189 scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
189 190
190 // Watcher for |fd_| listening for page flip events. 191 // Watcher for |fd_| listening for page flip events.
191 scoped_refptr<IOWatcher> watcher_; 192 scoped_refptr<IOWatcher> watcher_;
192 193
194 scoped_refptr<PageFlipManager> page_flip_manager_;
195
193 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 196 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
194 }; 197 };
195 198
196 } // namespace ui 199 } // namespace ui
197 200
198 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 201 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | ui/ozone/platform/drm/gpu/drm_device.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698