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