| 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 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 virtual bool DestroyDumbBuffer(uint32_t handle); | 152 virtual bool DestroyDumbBuffer(uint32_t handle); |
| 153 | 153 |
| 154 virtual bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels); | 154 virtual bool MapDumbBuffer(uint32_t handle, size_t size, void** pixels); |
| 155 | 155 |
| 156 virtual bool UnmapDumbBuffer(void* pixels, size_t size); | 156 virtual bool UnmapDumbBuffer(void* pixels, size_t size); |
| 157 | 157 |
| 158 virtual bool CloseBufferHandle(uint32_t handle); | 158 virtual bool CloseBufferHandle(uint32_t handle); |
| 159 | 159 |
| 160 virtual bool CommitProperties(drmModePropertySet* properties, | 160 virtual bool CommitProperties(drmModePropertySet* properties, |
| 161 uint32_t flags, | 161 uint32_t flags, |
| 162 bool is_sync, |
| 162 const PageFlipCallback& callback); | 163 const PageFlipCallback& callback); |
| 163 | 164 |
| 164 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. | 165 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. |
| 165 virtual bool SetGammaRamp(uint32_t crtc_id, | 166 virtual bool SetGammaRamp(uint32_t crtc_id, |
| 166 const std::vector<GammaRampRGBEntry>& lut); | 167 const std::vector<GammaRampRGBEntry>& lut); |
| 167 | 168 |
| 168 // Drm master related | 169 // Drm master related |
| 169 virtual bool SetMaster(); | 170 virtual bool SetMaster(); |
| 170 virtual bool DropMaster(); | 171 virtual bool DropMaster(); |
| 171 | 172 |
| (...skipping 27 matching lines...) Expand all Loading... |
| 199 scoped_refptr<IOWatcher> watcher_; | 200 scoped_refptr<IOWatcher> watcher_; |
| 200 | 201 |
| 201 scoped_refptr<PageFlipManager> page_flip_manager_; | 202 scoped_refptr<PageFlipManager> page_flip_manager_; |
| 202 | 203 |
| 203 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 204 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 204 }; | 205 }; |
| 205 | 206 |
| 206 } // namespace ui | 207 } // namespace ui |
| 207 | 208 |
| 208 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 209 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |