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

Unified Diff: ui/ozone/platform/drm/host/drm_native_display_delegate.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, 9 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/host/drm_native_display_delegate.cc
diff --git a/ui/ozone/platform/drm/host/drm_native_display_delegate.cc b/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
index 0d6389bce8c8a6be996df264c43eef28b40195b2..1563516b1075169db8f9889d686f8df9f332ebf0 100644
--- a/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
+++ b/ui/ozone/platform/drm/host/drm_native_display_delegate.cc
@@ -102,11 +102,13 @@ bool DrmNativeDisplayDelegate::SetColorCalibrationProfile(
return false;
}
-bool DrmNativeDisplayDelegate::SetGammaRamp(
+bool DrmNativeDisplayDelegate::SetColorCorrection(
const ui::DisplaySnapshot& output,
- const std::vector<GammaRampRGBEntry>& lut) {
+ const std::vector<GammaRampRGBEntry>& degamma_lut,
+ const std::vector<GammaRampRGBEntry>& gamma_lut,
+ const std::vector<float>& correction_matrix) {
DrmDisplayHost* display = display_manager_->GetDisplay(output.display_id());
- display->SetGammaRamp(lut);
+ display->SetColorCorrection(degamma_lut, gamma_lut, correction_matrix);
return true;
}
« no previous file with comments | « ui/ozone/platform/drm/host/drm_native_display_delegate.h ('k') | ui/ozone/platform/drm/host/gpu_thread_adapter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698