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 #include "ui/ozone/platform/drm/gpu/mock_drm_device.h" | 5 #include "ui/ozone/platform/drm/gpu/mock_drm_device.h" |
6 | 6 |
7 #include <drm_fourcc.h> | 7 #include <drm_fourcc.h> |
8 #include <xf86drm.h> | 8 #include <xf86drm.h> |
9 #include <xf86drmMode.h> | 9 #include <xf86drmMode.h> |
10 | 10 |
(...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
243 uint32_t crtc_count, | 243 uint32_t crtc_count, |
244 const PageFlipCallback& callback) { | 244 const PageFlipCallback& callback) { |
245 return false; | 245 return false; |
246 } | 246 } |
247 | 247 |
248 bool MockDrmDevice::SetGammaRamp(uint32_t crtc_id, | 248 bool MockDrmDevice::SetGammaRamp(uint32_t crtc_id, |
249 const std::vector<GammaRampRGBEntry>& lut) { | 249 const std::vector<GammaRampRGBEntry>& lut) { |
250 return true; | 250 return true; |
251 } | 251 } |
252 | 252 |
| 253 bool MockDrmDevice::SetColorCorrection( |
| 254 uint32_t crtc_id, |
| 255 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 256 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 257 const float correction_matrix[9]) { |
| 258 return true; |
| 259 } |
| 260 |
253 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) { | 261 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) { |
254 return false; | 262 return false; |
255 } | 263 } |
256 | 264 |
257 void MockDrmDevice::RunCallbacks() { | 265 void MockDrmDevice::RunCallbacks() { |
258 while (!callbacks_.empty()) { | 266 while (!callbacks_.empty()) { |
259 PageFlipCallback callback = callbacks_.front(); | 267 PageFlipCallback callback = callbacks_.front(); |
260 callbacks_.pop(); | 268 callbacks_.pop(); |
261 callback.Run(0, 0, 0); | 269 callback.Run(0, 0, 0); |
262 } | 270 } |
263 } | 271 } |
264 | 272 |
265 } // namespace ui | 273 } // namespace ui |
OLD | NEW |