| 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 #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 161 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 172 | 172 |
| 173 protected: | 173 protected: |
| 174 friend class base::RefCountedThreadSafe<DrmDevice>; | 174 friend class base::RefCountedThreadSafe<DrmDevice>; |
| 175 | 175 |
| 176 virtual ~DrmDevice(); | 176 virtual ~DrmDevice(); |
| 177 | 177 |
| 178 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_; | 178 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_; |
| 179 | 179 |
| 180 private: | 180 private: |
| 181 class IOWatcher; | 181 class IOWatcher; |
| 182 class PageFlipManager; |
| 182 | 183 |
| 183 // Path to DRM device. | 184 // Path to DRM device. |
| 184 const base::FilePath device_path_; | 185 const base::FilePath device_path_; |
| 185 | 186 |
| 186 // DRM device. | 187 // DRM device. |
| 187 base::File file_; | 188 base::File file_; |
| 188 | 189 |
| 189 // Helper thread to perform IO listener operations. | 190 // Helper thread to perform IO listener operations. |
| 190 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; | 191 scoped_refptr<base::SingleThreadTaskRunner> task_runner_; |
| 191 | 192 |
| 192 // Watcher for |fd_| listening for page flip events. | 193 // Watcher for |fd_| listening for page flip events. |
| 193 scoped_refptr<IOWatcher> watcher_; | 194 scoped_refptr<IOWatcher> watcher_; |
| 194 | 195 |
| 196 scoped_refptr<PageFlipManager> page_flip_manager_; |
| 197 |
| 195 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 198 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 196 }; | 199 }; |
| 197 | 200 |
| 198 } // namespace ui | 201 } // namespace ui |
| 199 | 202 |
| 200 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 203 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |