| 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 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 void OnConfigureNativeDisplay(int64_t id, | 65 void OnConfigureNativeDisplay(int64_t id, |
| 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, display::HDCPState state); |
| 76 void OnSetColorCorrection(int64_t id, | 76 void OnSetColorCorrection( |
| 77 const std::vector<GammaRampRGBEntry>& degamma_lut, | 77 int64_t id, |
| 78 const std::vector<GammaRampRGBEntry>& gamma_lut, | 78 const std::vector<display::GammaRampRGBEntry>& degamma_lut, |
| 79 const std::vector<float>& correction_matrix); | 79 const std::vector<display::GammaRampRGBEntry>& gamma_lut, |
| 80 const std::vector<float>& correction_matrix); |
| 80 | 81 |
| 81 void OnCheckOverlayCapabilitiesCallback( | 82 void OnCheckOverlayCapabilitiesCallback( |
| 82 gfx::AcceleratedWidget widget, | 83 gfx::AcceleratedWidget widget, |
| 83 const std::vector<OverlayCheck_Params>& overlays) const; | 84 const std::vector<OverlayCheck_Params>& overlays) const; |
| 84 void OnRefreshNativeDisplaysCallback( | 85 void OnRefreshNativeDisplaysCallback( |
| 85 const std::vector<DisplaySnapshot_Params>& displays) const; | 86 const std::vector<DisplaySnapshot_Params>& displays) const; |
| 86 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; | 87 void OnConfigureNativeDisplayCallback(int64_t display_id, bool success) const; |
| 87 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; | 88 void OnDisableNativeDisplayCallback(int64_t display_id, bool success) const; |
| 88 void OnTakeDisplayControlCallback(bool success) const; | 89 void OnTakeDisplayControlCallback(bool success) const; |
| 89 void OnRelinquishDisplayControlCallback(bool success) const; | 90 void OnRelinquishDisplayControlCallback(bool success) const; |
| 90 void OnGetHDCPStateCallback(int64_t display_id, | 91 void OnGetHDCPStateCallback(int64_t display_id, |
| 91 bool success, | 92 bool success, |
| 92 HDCPState state) const; | 93 display::HDCPState state) const; |
| 93 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; | 94 void OnSetHDCPStateCallback(int64_t display_id, bool success) const; |
| 94 | 95 |
| 95 DrmThread* drm_thread_; | 96 DrmThread* drm_thread_; |
| 96 | 97 |
| 97 IPC::Sender* sender_ = nullptr; | 98 IPC::Sender* sender_ = nullptr; |
| 98 | 99 |
| 99 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; | 100 base::WeakPtrFactory<DrmThreadMessageProxy> weak_ptr_factory_; |
| 100 | 101 |
| 101 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); | 102 DISALLOW_COPY_AND_ASSIGN(DrmThreadMessageProxy); |
| 102 }; | 103 }; |
| 103 | 104 |
| 104 } // namespace ui | 105 } // namespace ui |
| 105 | 106 |
| 106 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ | 107 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_MESSAGE_PROXY_H_ |
| OLD | NEW |