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

Unified 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: Improve memory management / casting Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/drm_thread.cc
diff --git a/ui/ozone/platform/drm/gpu/drm_thread.cc b/ui/ozone/platform/drm/gpu/drm_thread.cc
index e95883c99915ab61e1a241b2c66f856c3955e6a2..f60f9f8b32bf0ef86dd46e8b3027481ca9564720 100644
--- a/ui/ozone/platform/drm/gpu/drm_thread.cc
+++ b/ui/ozone/platform/drm/gpu/drm_thread.cc
@@ -227,9 +227,13 @@ void DrmThread::SetHDCPState(
callback.Run(display_id, display_manager_->SetHDCPState(display_id, state));
}
-void DrmThread::SetGammaRamp(int64_t id,
- const std::vector<GammaRampRGBEntry>& lut) {
- display_manager_->SetGammaRamp(id, lut);
+void DrmThread::SetColorCorrection(
+ int64_t display_id,
+ const std::vector<GammaRampRGBEntry>& degamma_lut,
+ const std::vector<GammaRampRGBEntry>& gamma_lut,
+ const std::vector<float>& correction_matrix) {
+ display_manager_->SetColorCorrection(display_id, degamma_lut, gamma_lut,
+ correction_matrix);
}
} // namespace ui

Powered by Google App Engine
This is Rietveld 408576698