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 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 const DisplayMode_Params& mode, | 61 const DisplayMode_Params& mode, |
62 const gfx::Point& origin); | 62 const gfx::Point& origin); |
63 void OnDisableNativeDisplay(int64_t id); | 63 void OnDisableNativeDisplay(int64_t id); |
64 void OnTakeDisplayControl(); | 64 void OnTakeDisplayControl(); |
65 void OnRelinquishDisplayControl(); | 65 void OnRelinquishDisplayControl(); |
66 void OnAddGraphicsDevice(const base::FilePath& path, | 66 void OnAddGraphicsDevice(const base::FilePath& path, |
67 const base::FileDescriptor& fd); | 67 const base::FileDescriptor& fd); |
68 void OnRemoveGraphicsDevice(const base::FilePath& path); | 68 void OnRemoveGraphicsDevice(const base::FilePath& path); |
69 void OnGetHDCPState(int64_t display_id); | 69 void OnGetHDCPState(int64_t display_id); |
70 void OnSetHDCPState(int64_t display_id, HDCPState state); | 70 void OnSetHDCPState(int64_t display_id, HDCPState state); |
71 void OnSetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); | 71 void OnSetColorCorrection(int64_t id, |
| 72 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 73 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 74 const std::vector<float>& correction_matrix); |
72 | 75 |
73 void OnCheckOverlayCapabilitiesCallback( | 76 void OnCheckOverlayCapabilitiesCallback( |
74 gfx::AcceleratedWidget widget, | 77 gfx::AcceleratedWidget widget, |
75 const std::vector<OverlayCheck_Params>& overlays) const; | 78 const std::vector<OverlayCheck_Params>& overlays) const; |
76 void OnRefreshNativeDisplaysCallback( | 79 void OnRefreshNativeDisplaysCallback( |
77 const std::vector<DisplaySnapshot_Params>& displays) const; | 80 const std::vector<DisplaySnapshot_Params>& displays) const; |
78 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; | 81 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; |
79 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; | 82 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; |
80 void OnTakeDisplayControlCallback(bool success) const; | 83 void OnTakeDisplayControlCallback(bool success) const; |
81 void OnRelinquishDisplayControlCallback(bool success) const; | 84 void OnRelinquishDisplayControlCallback(bool success) const; |
82 void OnGetHDCPStateCallback(int64_t display_id, | 85 void OnGetHDCPStateCallback(int64_t display_id, |
83 bool success, | 86 bool success, |
84 HDCPState state) const; | 87 HDCPState state) const; |
85 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; | 88 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; |
86 | 89 |
87 DrmThread* drm_thread_; | 90 DrmThread* drm_thread_; |
88 | 91 |
89 IPC::Sender* sender_ = nullptr; | 92 IPC::Sender* sender_ = nullptr; |
90 | 93 |
91 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; | 94 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; |
92 | 95 |
93 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); | 96 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); |
94 }; | 97 }; |
95 | 98 |
96 } // namespace ui | 99 } // namespace ui |
97 | 100 |
98 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ | 101 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ |
OLD | NEW |