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 142 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
153 uint32_t handle, | 153 uint32_t handle, |
154 uint32_t stride, | 154 uint32_t stride, |
155 void* pixels); | 155 void* pixels); |
156 | 156 |
157 virtual bool CloseBufferHandle(uint32_t handle); | 157 virtual bool CloseBufferHandle(uint32_t handle); |
158 | 158 |
159 virtual bool CommitProperties(drmModePropertySet* properties, | 159 virtual bool CommitProperties(drmModePropertySet* properties, |
160 uint32_t flags, | 160 uint32_t flags, |
161 const PageFlipCallback& callback); | 161 const PageFlipCallback& callback); |
162 | 162 |
163 virtual bool SetCapability(uint64_t capability, uint64_t value); | |
164 | |
165 // Drm master related | 163 // Drm master related |
166 virtual bool SetMaster(); | 164 virtual bool SetMaster(); |
167 virtual bool DropMaster(); | 165 virtual bool DropMaster(); |
168 | 166 |
169 int get_fd() const { return file_.GetPlatformFile(); } | 167 int get_fd() const { return file_.GetPlatformFile(); } |
170 | 168 |
171 base::FilePath device_path() const { return device_path_; } | 169 base::FilePath device_path() const { return device_path_; } |
172 | 170 |
173 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } | 171 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } |
174 | 172 |
(...skipping 18 matching lines...) Expand all Loading... |
193 | 191 |
194 // Watcher for |fd_| listening for page flip events. | 192 // Watcher for |fd_| listening for page flip events. |
195 scoped_refptr<IOWatcher> watcher_; | 193 scoped_refptr<IOWatcher> watcher_; |
196 | 194 |
197 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 195 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
198 }; | 196 }; |
199 | 197 |
200 } // namespace ui | 198 } // namespace ui |
201 | 199 |
202 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 200 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
OLD | NEW |