| 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 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 171 // Drm master related | 171 // Drm master related |
| 172 virtual bool SetMaster(); | 172 virtual bool SetMaster(); |
| 173 virtual bool DropMaster(); | 173 virtual bool DropMaster(); |
| 174 | 174 |
| 175 int get_fd() const { return file_.GetPlatformFile(); } | 175 int get_fd() const { return file_.GetPlatformFile(); } |
| 176 | 176 |
| 177 base::FilePath device_path() const { return device_path_; } | 177 base::FilePath device_path() const { return device_path_; } |
| 178 | 178 |
| 179 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } | 179 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } |
| 180 | 180 |
| 181 bool BufferHandleToFd(uint32_t handle, int* fd); |
| 182 bool BufferFdToHandle(int fd, uint32_t* handle); |
| 183 bool BufferHandleSetTiling(uint32_t handle, |
| 184 uint32_t stride, |
| 185 uint32_t tiling_mode); |
| 186 |
| 181 protected: | 187 protected: |
| 182 friend class base::RefCountedThreadSafe<DrmDevice>; | 188 friend class base::RefCountedThreadSafe<DrmDevice>; |
| 183 | 189 |
| 184 virtual ~DrmDevice(); | 190 virtual ~DrmDevice(); |
| 185 | 191 |
| 186 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_; | 192 scoped_ptr<HardwareDisplayPlaneManager> plane_manager_; |
| 187 | 193 |
| 188 private: | 194 private: |
| 189 class IOWatcher; | 195 class IOWatcher; |
| 190 class PageFlipManager; | 196 class PageFlipManager; |
| (...skipping 11 matching lines...) Expand all Loading... |
| 202 scoped_refptr<IOWatcher> watcher_; | 208 scoped_refptr<IOWatcher> watcher_; |
| 203 | 209 |
| 204 scoped_refptr<PageFlipManager> page_flip_manager_; | 210 scoped_refptr<PageFlipManager> page_flip_manager_; |
| 205 | 211 |
| 206 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 212 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 207 }; | 213 }; |
| 208 | 214 |
| 209 } // namespace ui | 215 } // namespace ui |
| 210 | 216 |
| 211 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 217 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |