Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(113)

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_thread.h

Issue 1182063002: Add support for more advanced color correction (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@qcms-fixed-point-gamma
Patch Set: Improve memory management / casting Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 void RelinquishDisplayControl(const base::Callback<void(bool)>& callback); 97 void RelinquishDisplayControl(const base::Callback<void(bool)>& callback);
98 void AddGraphicsDevice(const base::FilePath& path, 98 void AddGraphicsDevice(const base::FilePath& path,
99 const base::FileDescriptor& fd); 99 const base::FileDescriptor& fd);
100 void RemoveGraphicsDevice(const base::FilePath& path); 100 void RemoveGraphicsDevice(const base::FilePath& path);
101 void GetHDCPState( 101 void GetHDCPState(
102 int64_t display_id, 102 int64_t display_id,
103 const base::Callback<void(int64_t, bool, HDCPState)>& callback); 103 const base::Callback<void(int64_t, bool, HDCPState)>& callback);
104 void SetHDCPState(int64_t display_id, 104 void SetHDCPState(int64_t display_id,
105 HDCPState state, 105 HDCPState state,
106 const base::Callback<void(int64_t, bool)>& callback); 106 const base::Callback<void(int64_t, bool)>& callback);
107 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); 107 void SetColorCorrection(int64_t display_id,
108 const std::vector<GammaRampRGBEntry>& degamma_lut,
109 const std::vector<GammaRampRGBEntry>& gamma_lut,
110 const std::vector<float>& correction_matrix);
108 111
109 // base::Thread: 112 // base::Thread:
110 void Init() override; 113 void Init() override;
111 114
112 private: 115 private:
113 scoped_ptr<DrmDeviceManager> device_manager_; 116 scoped_ptr<DrmDeviceManager> device_manager_;
114 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; 117 scoped_ptr<ScanoutBufferGenerator> buffer_generator_;
115 scoped_ptr<ScreenManager> screen_manager_; 118 scoped_ptr<ScreenManager> screen_manager_;
116 scoped_ptr<DrmGpuDisplayManager> display_manager_; 119 scoped_ptr<DrmGpuDisplayManager> display_manager_;
117 120
118 DISALLOW_COPY_AND_ASSIGN(DrmThread); 121 DISALLOW_COPY_AND_ASSIGN(DrmThread);
119 }; 122 };
120 123
121 } // namespace ui 124 } // namespace ui
122 125
123 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 126 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698