Index: ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc |
index 80ebaf6b0bdd4f230f01e0778dc7c2a374a61388..92baacafd05e4df87f84b91cf8b05c1f505b6a10 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_thread_message_proxy.cc |
@@ -54,7 +54,7 @@ bool DrmThreadMessageProxy::OnMessageReceived(const IPC::Message& message) { |
OnRemoveGraphicsDevice) |
IPC_MESSAGE_HANDLER(OzoneGpuMsg_GetHDCPState, OnGetHDCPState) |
IPC_MESSAGE_HANDLER(OzoneGpuMsg_SetHDCPState, OnSetHDCPState) |
- IPC_MESSAGE_HANDLER(OzoneGpuMsg_SetGammaRamp, OnSetGammaRamp) |
+ IPC_MESSAGE_HANDLER(OzoneGpuMsg_SetColorCorrection, OnSetColorCorrection) |
IPC_MESSAGE_HANDLER(OzoneGpuMsg_CheckOverlayCapabilities, |
OnCheckOverlayCapabilities) |
IPC_MESSAGE_UNHANDLED(handled = false) |
@@ -212,13 +212,16 @@ void DrmThreadMessageProxy::OnSetHDCPState(int64_t display_id, |
display_id, state, CreateSafeCallback(callback))); |
} |
-void DrmThreadMessageProxy::OnSetGammaRamp( |
+void DrmThreadMessageProxy::OnSetColorCorrection( |
int64_t id, |
- const std::vector<GammaRampRGBEntry>& lut) { |
+ const std::vector<GammaRampRGBEntry>& degamma_lut, |
+ const std::vector<GammaRampRGBEntry>& gamma_lut, |
+ const std::vector<float>& correction_matrix) { |
DCHECK(drm_thread_->IsRunning()); |
drm_thread_->task_runner()->PostTask( |
- FROM_HERE, base::Bind(&DrmThread::SetGammaRamp, |
- base::Unretained(drm_thread_), id, lut)); |
+ FROM_HERE, |
+ base::Bind(&DrmThread::SetColorCorrection, base::Unretained(drm_thread_), |
+ id, degamma_lut, gamma_lut, correction_matrix)); |
} |
void DrmThreadMessageProxy::OnCheckOverlayCapabilitiesCallback( |