Index: ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc |
diff --git a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc |
index 495307f85e4abcbfcbdd338b19c611adc4ca582f..728815920354b3cf3eed1dd533b5c07c0d0f1d1f 100644 |
--- a/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc |
+++ b/ui/ozone/platform/drm/gpu/drm_gpu_platform_support.cc |
@@ -213,6 +213,7 @@ bool DrmGpuPlatformSupport::OnMessageReceived(const IPC::Message& message) { |
OnRelinquishDisplayControl) |
IPC_MESSAGE_HANDLER(OzoneGpuMsg_AddGraphicsDevice, OnAddGraphicsDevice) |
IPC_MESSAGE_HANDLER(OzoneGpuMsg_RemoveGraphicsDevice, OnRemoveGraphicsDevice) |
+ IPC_MESSAGE_HANDLER(OzoneGpuMsg_SetGammaRamp, OnSetGammaRamp); |
IPC_MESSAGE_UNHANDLED(handled = false); |
IPC_END_MESSAGE_MAP() |
@@ -291,6 +292,12 @@ void DrmGpuPlatformSupport::OnRemoveGraphicsDevice(const base::FilePath& path) { |
ndd_->RemoveGraphicsDevice(path); |
} |
+void DrmGpuPlatformSupport::OnSetGammaRamp( |
+ int64_t id, |
+ const std::vector<GammaRampRGBEntry>& lut) { |
+ ndd_->SetGammaRamp(id, lut); |
+} |
+ |
void DrmGpuPlatformSupport::RelinquishGpuResources( |
const base::Closure& callback) { |
callback.Run(); |