| 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 gfx::AcceleratedWidget widget, | 51 gfx::AcceleratedWidget widget, |
| 52 const std::vector<OverlayCheck_Params>& new_params) = 0; | 52 const std::vector<OverlayCheck_Params>& new_params) = 0; |
| 53 | 53 |
| 54 // Services needed by DrmDisplayHost | 54 // Services needed by DrmDisplayHost |
| 55 virtual bool GpuConfigureNativeDisplay( | 55 virtual bool GpuConfigureNativeDisplay( |
| 56 int64_t display_id, | 56 int64_t display_id, |
| 57 const ui::DisplayMode_Params& display_mode, | 57 const ui::DisplayMode_Params& display_mode, |
| 58 const gfx::Point& point) = 0; | 58 const gfx::Point& point) = 0; |
| 59 virtual bool GpuDisableNativeDisplay(int64_t display_id) = 0; | 59 virtual bool GpuDisableNativeDisplay(int64_t display_id) = 0; |
| 60 virtual bool GpuGetHDCPState(int64_t display_id) = 0; | 60 virtual bool GpuGetHDCPState(int64_t display_id) = 0; |
| 61 virtual bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) = 0; | 61 virtual bool GpuSetHDCPState(int64_t display_id, |
| 62 display::HDCPState state) = 0; |
| 62 virtual bool GpuSetColorCorrection( | 63 virtual bool GpuSetColorCorrection( |
| 63 int64_t display_id, | 64 int64_t display_id, |
| 64 const std::vector<GammaRampRGBEntry>& degamma_lut, | 65 const std::vector<display::GammaRampRGBEntry>& degamma_lut, |
| 65 const std::vector<GammaRampRGBEntry>& gamma_lut, | 66 const std::vector<display::GammaRampRGBEntry>& gamma_lut, |
| 66 const std::vector<float>& correction_matrix) = 0; | 67 const std::vector<float>& correction_matrix) = 0; |
| 67 | 68 |
| 68 // Services needed by DrmWindowHost | 69 // Services needed by DrmWindowHost |
| 69 virtual bool GpuDestroyWindow(gfx::AcceleratedWidget widget) = 0; | 70 virtual bool GpuDestroyWindow(gfx::AcceleratedWidget widget) = 0; |
| 70 virtual bool GpuCreateWindow(gfx::AcceleratedWidget widget) = 0; | 71 virtual bool GpuCreateWindow(gfx::AcceleratedWidget widget) = 0; |
| 71 virtual bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, | 72 virtual bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, |
| 72 const gfx::Rect& bounds) = 0; | 73 const gfx::Rect& bounds) = 0; |
| 73 }; | 74 }; |
| 74 | 75 |
| 75 } // namespace ui | 76 } // namespace ui |
| 76 | 77 |
| 77 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ | 78 #endif // UI_OZONE_PLATFORM_DRM_HOST_GPU_THREAD_ADAPTER_H_ |
| OLD | NEW |