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

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

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Rebase after quirks changes Created 4 years, 8 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
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/drm_thread.h" 5 #include "ui/ozone/platform/drm/gpu/drm_thread.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 224 matching lines...) Expand 10 before | Expand all | Expand 10 after
235 callback.Run(display_id, success, state); 235 callback.Run(display_id, success, state);
236 } 236 }
237 237
238 void DrmThread::SetHDCPState( 238 void DrmThread::SetHDCPState(
239 int64_t display_id, 239 int64_t display_id,
240 HDCPState state, 240 HDCPState state,
241 const base::Callback<void(int64_t, bool)>& callback) { 241 const base::Callback<void(int64_t, bool)>& callback) {
242 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); 242 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state));
243 } 243 }
244 244
245 void DrmThread::SetGammaRamp(int64_t id, 245 void DrmThread::SetColorCorrection(
246 const std::vector<GammaRampRGBEntry>& lut) { 246 int64_t display_id,
247 display_manager_->SetGammaRamp(id, lut); 247 const std::vector<GammaRampRGBEntry>& degamma_lut,
248 const std::vector<GammaRampRGBEntry>& gamma_lut,
249 const std::vector<float>& correction_matrix) {
250 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut,
251 correction_matrix);
248 } 252 }
249 253
250 } // namespace ui 254 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_thread.h ('k') | ui/ozone/platform/drm/gpu/drm_thread_message_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698