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

Side by Side Diff: ui/ozone/platform/drm/host/drm_gpu_platform_support_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: Rebase after quirks changes Created 4 years, 8 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_gpu_platform_support_host.h ('k') | ui/ozone/platform/drm/host/drm_native_display_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698