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

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: Rebase after quirks changes Created 4 years, 8 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 91 matching lines...) Expand 10 before | Expand all | Expand 10 after
102 void RelinquishDisplayControl(const base::Callback<void(bool)>& callback); 102 void RelinquishDisplayControl(const base::Callback<void(bool)>& callback);
103 void AddGraphicsDevice(const base::FilePath& path, 103 void AddGraphicsDevice(const base::FilePath& path,
104 const base::FileDescriptor& fd); 104 const base::FileDescriptor& fd);
105 void RemoveGraphicsDevice(const base::FilePath& path); 105 void RemoveGraphicsDevice(const base::FilePath& path);
106 void GetHDCPState( 106 void GetHDCPState(
107 int64_t display_id, 107 int64_t display_id,
108 const base::Callback<void(int64_t, bool, HDCPState)>& callback); 108 const base::Callback<void(int64_t, bool, HDCPState)>& callback);
109 void SetHDCPState(int64_t display_id, 109 void SetHDCPState(int64_t display_id,
110 HDCPState state, 110 HDCPState state,
111 const base::Callback<void(int64_t, bool)>& callback); 111 const base::Callback<void(int64_t, bool)>& callback);
112 void SetGammaRamp(int64_t id, const std::vector<GammaRampRGBEntry>& lut); 112 void SetColorCorrection(int64_t display_id,
113 const std::vector<GammaRampRGBEntry>& degamma_lut,
114 const std::vector<GammaRampRGBEntry>& gamma_lut,
115 const std::vector<float>& correction_matrix);
113 116
114 // base::Thread: 117 // base::Thread:
115 void Init() override; 118 void Init() override;
116 119
117 private: 120 private:
118 scoped_ptr<DrmDeviceManager> device_manager_; 121 scoped_ptr<DrmDeviceManager> device_manager_;
119 scoped_ptr<ScanoutBufferGenerator> buffer_generator_; 122 scoped_ptr<ScanoutBufferGenerator> buffer_generator_;
120 scoped_ptr<ScreenManager> screen_manager_; 123 scoped_ptr<ScreenManager> screen_manager_;
121 scoped_ptr<DrmGpuDisplayManager> display_manager_; 124 scoped_ptr<DrmGpuDisplayManager> display_manager_;
122 125
123 DISALLOW_COPY_AND_ASSIGN(DrmThread); 126 DISALLOW_COPY_AND_ASSIGN(DrmThread);
124 }; 127 };
125 128
126 } // namespace ui 129 } // namespace ui
127 130
128 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_ 131 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_THREAD_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/gpu/drm_gpu_display_manager.cc ('k') | ui/ozone/platform/drm/gpu/drm_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698