| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" | 5 #include "ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/trace_event/trace_event.h" | 9 #include "base/trace_event/trace_event.h" |
| 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" | 10 #include "ui/ozone/common/gpu/ozone_gpu_message_params.h" |
| (...skipping 272 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 283 | 283 |
| 284 bool DrmGpuPlatformSupportHost::GpuGetHDCPState(int64_t display_id) { | 284 bool DrmGpuPlatformSupportHost::GpuGetHDCPState(int64_t display_id) { |
| 285 return Send(new OzoneGpuMsg_GetHDCPState(display_id)); | 285 return Send(new OzoneGpuMsg_GetHDCPState(display_id)); |
| 286 } | 286 } |
| 287 | 287 |
| 288 bool DrmGpuPlatformSupportHost::GpuSetHDCPState(int64_t display_id, | 288 bool DrmGpuPlatformSupportHost::GpuSetHDCPState(int64_t display_id, |
| 289 ui::HDCPState state) { | 289 ui::HDCPState state) { |
| 290 return Send(new OzoneGpuMsg_SetHDCPState(display_id, state)); | 290 return Send(new OzoneGpuMsg_SetHDCPState(display_id, state)); |
| 291 } | 291 } |
| 292 | 292 |
| 293 bool DrmGpuPlatformSupportHost::GpuSetGammaRamp( | 293 bool DrmGpuPlatformSupportHost::GpuSetColorCorrection( |
| 294 int64_t display_id, | 294 int64_t display_id, |
| 295 const std::vector<GammaRampRGBEntry>& lut) { | 295 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 296 return Send(new OzoneGpuMsg_SetGammaRamp(display_id, lut)); | 296 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 297 const std::vector<float>& correction_matrix) { |
| 298 return Send(new OzoneGpuMsg_SetColorCorrection(display_id, degamma_lut, |
| 299 gamma_lut, correction_matrix)); |
| 297 } | 300 } |
| 298 | 301 |
| 299 bool DrmGpuPlatformSupportHost::GpuDestroyWindow( | 302 bool DrmGpuPlatformSupportHost::GpuDestroyWindow( |
| 300 gfx::AcceleratedWidget widget) { | 303 gfx::AcceleratedWidget widget) { |
| 301 return Send(new OzoneGpuMsg_DestroyWindow(widget)); | 304 return Send(new OzoneGpuMsg_DestroyWindow(widget)); |
| 302 } | 305 } |
| 303 | 306 |
| 304 bool DrmGpuPlatformSupportHost::GpuCreateWindow(gfx::AcceleratedWidget widget) { | 307 bool DrmGpuPlatformSupportHost::GpuCreateWindow(gfx::AcceleratedWidget widget) { |
| 305 return Send(new OzoneGpuMsg_CreateWindow(widget)); | 308 return Send(new OzoneGpuMsg_CreateWindow(widget)); |
| 306 } | 309 } |
| 307 | 310 |
| 308 bool DrmGpuPlatformSupportHost::GpuWindowBoundsChanged( | 311 bool DrmGpuPlatformSupportHost::GpuWindowBoundsChanged( |
| 309 gfx::AcceleratedWidget widget, | 312 gfx::AcceleratedWidget widget, |
| 310 const gfx::Rect& bounds) { | 313 const gfx::Rect& bounds) { |
| 311 return Send(new OzoneGpuMsg_WindowBoundsChanged(widget, bounds)); | 314 return Send(new OzoneGpuMsg_WindowBoundsChanged(widget, bounds)); |
| 312 } | 315 } |
| 313 | 316 |
| 314 } // namespace ui | 317 } // namespace ui |
| OLD | NEW |