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 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ |
6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ | 6 #define UI_OZONE_PLATFORM_DRM_HOST_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 | 9 |
10 #include "base/callback.h" | 10 #include "base/callback.h" |
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 gfx::AcceleratedWidget widget, | 76 gfx::AcceleratedWidget widget, |
77 const std::vector<OverlayCheck_Params>& new_params) override; | 77 const std::vector<OverlayCheck_Params>& new_params) override; |
78 | 78 |
79 // Services needed by DrmDisplayHost | 79 // Services needed by DrmDisplayHost |
80 bool GpuConfigureNativeDisplay(int64_t display_id, | 80 bool GpuConfigureNativeDisplay(int64_t display_id, |
81 const ui::DisplayMode_Params& display_mode, | 81 const ui::DisplayMode_Params& display_mode, |
82 const gfx::Point& point) override; | 82 const gfx::Point& point) override; |
83 bool GpuDisableNativeDisplay(int64_t display_id) override; | 83 bool GpuDisableNativeDisplay(int64_t display_id) override; |
84 bool GpuGetHDCPState(int64_t display_id) override; | 84 bool GpuGetHDCPState(int64_t display_id) override; |
85 bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) override; | 85 bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) override; |
86 bool GpuSetGammaRamp(int64_t display_id, | 86 bool GpuSetColorCorrection( |
87 const std::vector<GammaRampRGBEntry>& lut) override; | 87 int64_t display_id, |
| 88 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 89 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 90 const std::vector<float>& correction_matrix) override; |
88 | 91 |
89 // Services needed by DrmWindowHost | 92 // Services needed by DrmWindowHost |
90 bool GpuDestroyWindow(gfx::AcceleratedWidget widget) override; | 93 bool GpuDestroyWindow(gfx::AcceleratedWidget widget) override; |
91 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; | 94 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; |
92 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, | 95 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, |
93 const gfx::Rect& bounds) override; | 96 const gfx::Rect& bounds) override; |
94 | 97 |
95 private: | 98 private: |
96 bool OnMessageReceivedForDrmDisplayHostManager(const IPC::Message& message); | 99 bool OnMessageReceivedForDrmDisplayHostManager(const IPC::Message& message); |
97 void OnUpdateNativeDisplays( | 100 void OnUpdateNativeDisplays( |
(...skipping 16 matching lines...) Expand all Loading... |
114 DrmDisplayHostManager* display_manager_; // Not owned. | 117 DrmDisplayHostManager* display_manager_; // Not owned. |
115 DrmOverlayManager* overlay_manager_; // Not owned. | 118 DrmOverlayManager* overlay_manager_; // Not owned. |
116 | 119 |
117 DrmCursor* cursor_; // Not owned. | 120 DrmCursor* cursor_; // Not owned. |
118 base::ObserverList<GpuThreadObserver> gpu_thread_observers_; | 121 base::ObserverList<GpuThreadObserver> gpu_thread_observers_; |
119 }; | 122 }; |
120 | 123 |
121 } // namespace ui | 124 } // namespace ui |
122 | 125 |
123 #endif // UI_OZONE_GPU_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ | 126 #endif // UI_OZONE_GPU_DRM_GPU_PLATFORM_SUPPORT_HOST_H_ |
OLD | NEW |