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

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: Refactor for glevin@ and load VCGT always Created 5 years, 1 month 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 "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/thread_task_runner_handle.h" 8 #include "base/thread_task_runner_handle.h"
9 #include "ui/ozone/platform/drm/gpu/drm_buffer.h" 9 #include "ui/ozone/platform/drm/gpu/drm_buffer.h"
10 #include "ui/ozone/platform/drm/gpu/drm_device_generator.h" 10 #include "ui/ozone/platform/drm/gpu/drm_device_generator.h"
(...skipping 205 matching lines...) Expand 10 before | Expand all | Expand 10 after
216 HDCPState state, 216 HDCPState state,
217 const base::Callback<void(int64_t, bool)>& callback) { 217 const base::Callback<void(int64_t, bool)>& callback) {
218 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state)); 218 callback.Run(display_id, display_manager_->SetHDCPState(display_id, state));
219 } 219 }
220 220
221 void DrmThread::SetGammaRamp(int64_t id, 221 void DrmThread::SetGammaRamp(int64_t id,
222 const std::vector<GammaRampRGBEntry>& lut) { 222 const std::vector<GammaRampRGBEntry>& lut) {
223 display_manager_->SetGammaRamp(id, lut); 223 display_manager_->SetGammaRamp(id, lut);
224 } 224 }
225 225
226 void DrmThread::SetColorCorrection(
227 int64_t display_id,
228 const std::vector<GammaRampRGBEntry>& degamma_lut,
229 const std::vector<GammaRampRGBEntry>& gamma_lut,
230 const std::vector<float>& correction_matrix) {
231 display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut,
232 &correction_matrix[0]);
233 }
234
226 } // namespace ui 235 } // namespace ui
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698