Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: ui/ozone/platform/drm/gpu/mock_drm_device.cc

Issue 1945353004: Revert of ash: reset color management when new screens are hotplugged (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 <xf86drm.h> 7 #include <xf86drm.h>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
217 return true; 217 return true;
218 } 218 }
219 219
220 bool MockDrmDevice::CommitProperties(drmModeAtomicReq* properties, 220 bool MockDrmDevice::CommitProperties(drmModeAtomicReq* properties,
221 uint32_t flags, 221 uint32_t flags,
222 uint32_t crtc_count, 222 uint32_t crtc_count,
223 const PageFlipCallback& callback) { 223 const PageFlipCallback& callback) {
224 return false; 224 return false;
225 } 225 }
226 226
227 bool MockDrmDevice::SetGammaRamp(uint32_t crtc_id,
228 const std::vector<GammaRampRGBEntry>& lut) {
229 return true;
230 }
231
227 bool MockDrmDevice::SetColorCorrection( 232 bool MockDrmDevice::SetColorCorrection(
228 uint32_t crtc_id, 233 uint32_t crtc_id,
229 const std::vector<GammaRampRGBEntry>& degamma_lut, 234 const std::vector<GammaRampRGBEntry>& degamma_lut,
230 const std::vector<GammaRampRGBEntry>& gamma_lut, 235 const std::vector<GammaRampRGBEntry>& gamma_lut,
231 const std::vector<float>& correction_matrix) { 236 const std::vector<float>& correction_matrix) {
232 return true; 237 return true;
233 } 238 }
234 239
235 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) { 240 bool MockDrmDevice::SetCapability(uint64_t capability, uint64_t value) {
236 return false; 241 return false;
237 } 242 }
238 243
239 void MockDrmDevice::RunCallbacks() { 244 void MockDrmDevice::RunCallbacks() {
240 while (!callbacks_.empty()) { 245 while (!callbacks_.empty()) {
241 PageFlipCallback callback = callbacks_.front(); 246 PageFlipCallback callback = callbacks_.front();
242 callbacks_.pop(); 247 callbacks_.pop();
243 callback.Run(0, 0, 0); 248 callback.Run(0, 0, 0);
244 } 249 }
245 } 250 }
246 251
247 } // namespace ui 252 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/mock_drm_device.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698