OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #ifndef UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ |
7 | 7 |
8 #include "base/file_descriptor_posix.h" | 8 #include "base/file_descriptor_posix.h" |
9 #include "ui/display/types/display_constants.h" | 9 #include "ui/display/types/display_constants.h" |
10 #include "ui/display/types/gamma_ramp_rgb_entry.h" | 10 #include "ui/display/types/gamma_ramp_rgb_entry.h" |
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
51 const std::vector<OverlayCheck_Params>& new_params) = 0; | 51 const std::vector<OverlayCheck_Params>& new_params) = 0; |
52 | 52 |
53 // Services needed by DrmDisplayHost | 53 // Services needed by DrmDisplayHost |
54 virtual bool GpuConfigureNativeDisplay( | 54 virtual bool GpuConfigureNativeDisplay( |
55 int64_t display_id, | 55 int64_t display_id, |
56 const ui::DisplayMode_Params& display_mode, | 56 const ui::DisplayMode_Params& display_mode, |
57 const gfx::Point& point) = 0; | 57 const gfx::Point& point) = 0; |
58 virtual bool GpuDisableNativeDisplay(int64_t display_id) = 0; | 58 virtual bool GpuDisableNativeDisplay(int64_t display_id) = 0; |
59 virtual bool GpuGetHDCPState(int64_t display_id) = 0; | 59 virtual bool GpuGetHDCPState(int64_t display_id) = 0; |
60 virtual bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) = 0; | 60 virtual bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) = 0; |
61 virtual bool GpuSetGammaRamp(int64_t display_id, | 61 virtual bool SetColorCorrection( |
62 const std::vector<GammaRampRGBEntry>& lut) = 0; | 62 int64_t display_id, |
| 63 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 64 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 65 const std::vector<float>& correction_matrix) = 0; |
63 | 66 |
64 // Services needed by DrmWindowHost | 67 // Services needed by DrmWindowHost |
65 virtual bool GpuDestroyWindow(gfx::AcceleratedWidget widget) = 0; | 68 virtual bool GpuDestroyWindow(gfx::AcceleratedWidget widget) = 0; |
66 virtual bool GpuCreateWindow(gfx::AcceleratedWidget widget) = 0; | 69 virtual bool GpuCreateWindow(gfx::AcceleratedWidget widget) = 0; |
67 virtual bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, | 70 virtual bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, |
68 const gfx::Rect& bounds) = 0; | 71 const gfx::Rect& bounds) = 0; |
69 }; | 72 }; |
70 | 73 |
71 } // namespace ui | 74 } // namespace ui |
72 | 75 |
73 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ | 76 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ |
OLD | NEW |