OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_GPU_DRM_THREAD_MESSAGE_PROXY_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include "base/macros.h" | 10 #include "base/macros.h" |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
66 const DisplayMode_Params& mode, | 66 const DisplayMode_Params& mode, |
67 const gfx::Point& origin); | 67 const gfx::Point& origin); |
68 void OnDisableNativeDisplay(int64_t id); | 68 void OnDisableNativeDisplay(int64_t id); |
69 void OnTakeDisplayControl(); | 69 void OnTakeDisplayControl(); |
70 void OnRelinquishDisplayControl(); | 70 void OnRelinquishDisplayControl(); |
71 void OnAddGraphicsDevice(const base::FilePath& path, | 71 void OnAddGraphicsDevice(const base::FilePath& path, |
72 const base::FileDescriptor& fd); | 72 const base::FileDescriptor& fd); |
73 void OnRemoveGraphicsDevice(const base::FilePath& path); | 73 void OnRemoveGraphicsDevice(const base::FilePath& path); |
74 void OnGetHDCPState(int64_t display_id); | 74 void OnGetHDCPState(int64_t display_id); |
75 void OnSetHDCPState(int64_t display_id, HDCPState state); | 75 void OnSetHDCPState(int64_t display_id, HDCPState state); |
76 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); | 76 void OnSetColorCorrection(int64_t id, |
| 77 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 78 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 79 const std::vector<float>& correction_matrix); |
77 | 80 |
78 void OnCheckOverlayCapabilitiesCallback( | 81 void OnCheckOverlayCapabilitiesCallback( |
79 gfx::AcceleratedWidget widget, | 82 gfx::AcceleratedWidget widget, |
80 const std::vector<OverlayCheck_Params>& overlays) const; | 83 const std::vector<OverlayCheck_Params>& overlays) const; |
81 void OnRefreshNativeDisplaysCallback( | 84 void OnRefreshNativeDisplaysCallback( |
82 const std::vector<DisplaySnapshot_Params>& displays) const; | 85 const std::vector<DisplaySnapshot_Params>& displays) const; |
83 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; | 86 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; |
84 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; | 87 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; |
85 void OnTakeDisplayControlCallback(bool success) const; | 88 void OnTakeDisplayControlCallback(bool success) const; |
86 void OnRelinquishDisplayControlCallback(bool success) const; | 89 void OnRelinquishDisplayControlCallback(bool success) const; |
87 void OnGetHDCPStateCallback(int64_t display_id, | 90 void OnGetHDCPStateCallback(int64_t display_id, |
88 bool success, | 91 bool success, |
89 HDCPState state) const; | 92 HDCPState state) const; |
90 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; | 93 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; |
91 | 94 |
92 DrmThread* drm_thread_; | 95 DrmThread* drm_thread_; |
93 | 96 |
94 IPC::Sender* sender_ = nullptr; | 97 IPC::Sender* sender_ = nullptr; |
95 | 98 |
96 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; | 99 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; |
97 | 100 |
98 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); | 101 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); |
99 }; | 102 }; |
100 | 103 |
101 } // namespace ui | 104 } // namespace ui |
102 | 105 |
103 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ | 106 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ |
OLD | NEW |