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_H_ | 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
7 | 7 |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "base/threading/thread.h" | 10 #include "base/threading/thread.h" |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 void AddGraphicsDevice(const base::FilePath& path, | 93 void AddGraphicsDevice(const base::FilePath& path, |
94 const base::FileDescriptor& fd); | 94 const base::FileDescriptor& fd); |
95 void RemoveGraphicsDevice(const base::FilePath& path); | 95 void RemoveGraphicsDevice(const base::FilePath& path); |
96 void GetHDCPState( | 96 void GetHDCPState( |
97 int64_t display_id, | 97 int64_t display_id, |
98 const base::Callback<void(int64_t, bool, HDCPState)>& callback); | 98 const base::Callback<void(int64_t, bool, HDCPState)>& callback); |
99 void SetHDCPState(int64_t display_id, | 99 void SetHDCPState(int64_t display_id, |
100 HDCPState state, | 100 HDCPState state, |
101 const base::Callback<void(int64_t, bool)>& callback); | 101 const base::Callback<void(int64_t, bool)>& callback); |
102 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); | 102 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); |
| 103 void SetColorCorrection(int64_t display_id, |
| 104 const std::vector<GammaRampRGBEntry>& degamma_lut, |
| 105 const std::vector<GammaRampRGBEntry>& gamma_lut, |
| 106 const std::vector<float>& correction_matrix); |
103 | 107 |
104 // base::Thread: | 108 // base::Thread: |
105 void Init() override; | 109 void Init() override; |
106 | 110 |
107 private: | 111 private: |
108 scoped_ptr<DrmDeviceManager> device_manager_; | 112 scoped_ptr<DrmDeviceManager> device_manager_; |
109 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; | 113 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; |
110 scoped_ptr<ScreenManager> screen_manager_; | 114 scoped_ptr<ScreenManager> screen_manager_; |
111 scoped_ptr<DrmGpuDisplayManager> display_manager_; | 115 scoped_ptr<DrmGpuDisplayManager> display_manager_; |
112 | 116 |
113 DISALLOW_COPY_AND_ASSIGN(DrmThread); | 117 DISALLOW_COPY_AND_ASSIGN(DrmThread); |
114 }; | 118 }; |
115 | 119 |
116 } // namespace ui | 120 } // namespace ui |
117 | 121 |
118 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ | 122 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ |
OLD | NEW |