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

Unified Diff: ui/ozone/platform/drm/host/drm_display_host.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: "reimplement" drmMode{Create,Destroy}PropertyBlob to fix build 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_display_host.cc
diff --git a/ui/ozone/platform/drm/host/drm_display_host.cc b/ui/ozone/platform/drm/host/drm_display_host.cc
index 3bca05de11a0cf637b92c3c0f0d0857c50c415e1..ea5f76269feec6ce15ef7e0a8123c09968c799f6 100644
--- a/ui/ozone/platform/drm/host/drm_display_host.cc
+++ b/ui/ozone/platform/drm/host/drm_display_host.cc
@@ -101,8 +101,12 @@ void DrmDisplayHost::OnHDCPStateUpdated(bool status) {
set_hdcp_callback_.Reset();
}
-void DrmDisplayHost::SetGammaRamp(const std::vector<GammaRampRGBEntry>& lut) {
- sender_->GpuSetGammaRamp(snapshot_->display_id(), lut);
+void DrmDisplayHost::SetColorCorrection(
+ const std::vector<GammaRampRGBEntry>& degamma_lut,
+ const std::vector<GammaRampRGBEntry>& gamma_lut,
+ const std::vector<float>& correction_matrix) {
+ sender_->SetColorCorrection(snapshot_->display_id(), degamma_lut, gamma_lut,
+ correction_matrix);
}
void DrmDisplayHost::OnGpuThreadReady() {

Powered by Google App Engine
This is Rietveld 408576698