| 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_MUS_THREAD_PROXY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| 6 #define UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| 7 | 7 |
| 8 #include "base/callback.h" | 8 #include "base/callback.h" |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/memory/weak_ptr.h" | 10 #include "base/memory/weak_ptr.h" |
| (...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 87 bool GpuCheckOverlayCapabilities( | 87 bool GpuCheckOverlayCapabilities( |
| 88 gfx::AcceleratedWidget widget, | 88 gfx::AcceleratedWidget widget, |
| 89 const std::vector<OverlayCheck_Params>& new_params) override; | 89 const std::vector<OverlayCheck_Params>& new_params) override; |
| 90 | 90 |
| 91 // Services needed by DrmDisplayHost | 91 // Services needed by DrmDisplayHost |
| 92 bool GpuConfigureNativeDisplay(int64_t display_id, | 92 bool GpuConfigureNativeDisplay(int64_t display_id, |
| 93 const ui::DisplayMode_Params& display_mode, | 93 const ui::DisplayMode_Params& display_mode, |
| 94 const gfx::Point& point) override; | 94 const gfx::Point& point) override; |
| 95 bool GpuDisableNativeDisplay(int64_t display_id) override; | 95 bool GpuDisableNativeDisplay(int64_t display_id) override; |
| 96 bool GpuGetHDCPState(int64_t display_id) override; | 96 bool GpuGetHDCPState(int64_t display_id) override; |
| 97 bool GpuSetHDCPState(int64_t display_id, ui::HDCPState state) override; | 97 bool GpuSetHDCPState(int64_t display_id, display::HDCPState state) override; |
| 98 bool GpuSetColorCorrection( | 98 bool GpuSetColorCorrection( |
| 99 int64_t display_id, | 99 int64_t display_id, |
| 100 const std::vector<GammaRampRGBEntry>& degamma_lut, | 100 const std::vector<display::GammaRampRGBEntry>& degamma_lut, |
| 101 const std::vector<GammaRampRGBEntry>& gamma_lut, | 101 const std::vector<display::GammaRampRGBEntry>& gamma_lut, |
| 102 const std::vector<float>& correction_matrix) override; | 102 const std::vector<float>& correction_matrix) override; |
| 103 | 103 |
| 104 // Services needed by DrmWindowHost | 104 // Services needed by DrmWindowHost |
| 105 bool GpuDestroyWindow(gfx::AcceleratedWidget widget) override; | 105 bool GpuDestroyWindow(gfx::AcceleratedWidget widget) override; |
| 106 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; | 106 bool GpuCreateWindow(gfx::AcceleratedWidget widget) override; |
| 107 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, | 107 bool GpuWindowBoundsChanged(gfx::AcceleratedWidget widget, |
| 108 const gfx::Rect& bounds) override; | 108 const gfx::Rect& bounds) override; |
| 109 | 109 |
| 110 // DrmCursorProxy. | 110 // DrmCursorProxy. |
| 111 void CursorSet(gfx::AcceleratedWidget window, | 111 void CursorSet(gfx::AcceleratedWidget window, |
| (...skipping 14 matching lines...) Expand all Loading... |
| 126 void GpuConfigureNativeDisplayCallback(int64_t display_id, | 126 void GpuConfigureNativeDisplayCallback(int64_t display_id, |
| 127 bool success) const; | 127 bool success) const; |
| 128 | 128 |
| 129 void GpuRefreshNativeDisplaysCallback( | 129 void GpuRefreshNativeDisplaysCallback( |
| 130 const std::vector<DisplaySnapshot_Params>& displays) const; | 130 const std::vector<DisplaySnapshot_Params>& displays) const; |
| 131 void GpuDisableNativeDisplayCallback(int64_t display_id, bool success) const; | 131 void GpuDisableNativeDisplayCallback(int64_t display_id, bool success) const; |
| 132 void GpuTakeDisplayControlCallback(bool success) const; | 132 void GpuTakeDisplayControlCallback(bool success) const; |
| 133 void GpuRelinquishDisplayControlCallback(bool success) const; | 133 void GpuRelinquishDisplayControlCallback(bool success) const; |
| 134 void GpuGetHDCPStateCallback(int64_t display_id, | 134 void GpuGetHDCPStateCallback(int64_t display_id, |
| 135 bool success, | 135 bool success, |
| 136 HDCPState state) const; | 136 display::HDCPState state) const; |
| 137 void GpuSetHDCPStateCallback(int64_t display_id, bool success) const; | 137 void GpuSetHDCPStateCallback(int64_t display_id, bool success) const; |
| 138 | 138 |
| 139 scoped_refptr<base::SingleThreadTaskRunner> ws_task_runner_; | 139 scoped_refptr<base::SingleThreadTaskRunner> ws_task_runner_; |
| 140 | 140 |
| 141 DrmThread* drm_thread_; // Not owned. | 141 DrmThread* drm_thread_; // Not owned. |
| 142 | 142 |
| 143 // Guards for multi-theaded access to drm_thread_. | 143 // Guards for multi-theaded access to drm_thread_. |
| 144 base::Lock lock_; | 144 base::Lock lock_; |
| 145 | 145 |
| 146 DrmDisplayHostManager* display_manager_; // Not owned. | 146 DrmDisplayHostManager* display_manager_; // Not owned. |
| 147 DrmOverlayManager* overlay_manager_; // Not owned. | 147 DrmOverlayManager* overlay_manager_; // Not owned. |
| 148 | 148 |
| 149 base::ObserverList<GpuThreadObserver> gpu_thread_observers_; | 149 base::ObserverList<GpuThreadObserver> gpu_thread_observers_; |
| 150 | 150 |
| 151 base::ThreadChecker on_window_server_thread_; | 151 base::ThreadChecker on_window_server_thread_; |
| 152 | 152 |
| 153 base::WeakPtrFactory<MusThreadProxy> weak_ptr_factory_; | 153 base::WeakPtrFactory<MusThreadProxy> weak_ptr_factory_; |
| 154 | 154 |
| 155 DISALLOW_COPY_AND_ASSIGN(MusThreadProxy); | 155 DISALLOW_COPY_AND_ASSIGN(MusThreadProxy); |
| 156 }; | 156 }; |
| 157 | 157 |
| 158 } // namespace ui | 158 } // namespace ui |
| 159 | 159 |
| 160 #endif // UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ | 160 #endif // UI_OZONE_PLATFORM_DRM_MUS_THREAD_PROXY_H_ |
| OLD | NEW |