| 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 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 155 virtual bool CloseBufferHandle(uint32_t handle); | 155 virtual bool CloseBufferHandle(uint32_t handle); |
| 156 | 156 |
| 157 virtual bool CommitProperties(drmModeAtomicReq* properties, | 157 virtual bool CommitProperties(drmModeAtomicReq* properties, |
| 158 uint32_t flags, | 158 uint32_t flags, |
| 159 uint32_t crtc_count, | 159 uint32_t crtc_count, |
| 160 const PageFlipCallback& callback); | 160 const PageFlipCallback& callback); |
| 161 | 161 |
| 162 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. | 162 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. |
| 163 virtual bool SetGammaRamp(uint32_t crtc_id, | 163 virtual bool SetGammaRamp(uint32_t crtc_id, |
| 164 const std::vector<GammaRampRGBEntry>& lut); | 164 const std::vector<GammaRampRGBEntry>& lut); |
| 165 virtual bool SetColorCorrection( |
| 166 uint32_t crtc_id, |
| 167 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 168 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 169 const float correction_matrix[9]); |
| 165 | 170 |
| 166 virtual bool SetCapability(uint64_t capability, uint64_t value); | 171 virtual bool SetCapability(uint64_t capability, uint64_t value); |
| 167 | 172 |
| 168 // Drm master related | 173 // Drm master related |
| 169 virtual bool SetMaster(); | 174 virtual bool SetMaster(); |
| 170 virtual bool DropMaster(); | 175 virtual bool DropMaster(); |
| 171 | 176 |
| 172 int get_fd() const { return file_.GetPlatformFile(); } | 177 int get_fd() const { return file_.GetPlatformFile(); } |
| 173 | 178 |
| 174 base::FilePath device_path() const { return device_path_; } | 179 base::FilePath device_path() const { return device_path_; } |
| (...skipping 23 matching lines...) Expand all Loading... |
| 198 scoped_ptr<IOWatcher> watcher_; | 203 scoped_ptr<IOWatcher> watcher_; |
| 199 | 204 |
| 200 bool is_primary_device_; | 205 bool is_primary_device_; |
| 201 | 206 |
| 202 DISALLOW_COPY_AND_ASSIGN(DrmDevice); | 207 DISALLOW_COPY_AND_ASSIGN(DrmDevice); |
| 203 }; | 208 }; |
| 204 | 209 |
| 205 } // namespace ui | 210 } // namespace ui |
| 206 | 211 |
| 207 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ | 212 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ |
| OLD | NEW |