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

Side by Side Diff: ui/ozone/platform/drm/gpu/drm_device.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
« no previous file with comments | « ui/ozone/platform/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_DEVICE_H_ 5 #ifndef UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 6 #define UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
156 virtual bool CloseBufferHandle(uint32_t handle); 156 virtual bool CloseBufferHandle(uint32_t handle);
157 157
158 virtual bool CommitProperties(drmModeAtomicReq* properties, 158 virtual bool CommitProperties(drmModeAtomicReq* properties,
159 uint32_t flags, 159 uint32_t flags,
160 uint32_t crtc_count, 160 uint32_t crtc_count,
161 const PageFlipCallback& callback); 161 const PageFlipCallback& callback);
162 162
163 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. 163 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|.
164 virtual bool SetGammaRamp(uint32_t crtc_id, 164 virtual bool SetGammaRamp(uint32_t crtc_id,
165 const std::vector<GammaRampRGBEntry>& lut); 165 const std::vector<GammaRampRGBEntry>& lut);
166 virtual bool SetColorCorrection(
167 uint32_t crtc_id,
168 const std::vector<GammaRampRGBEntry>& degamma_lut,
169 const std::vector<GammaRampRGBEntry>& gamma_lut,
170 const std::vector<float>& correction_matrix);
166 171
167 virtual bool SetCapability(uint64_t capability, uint64_t value); 172 virtual bool SetCapability(uint64_t capability, uint64_t value);
168 173
169 // Drm master related 174 // Drm master related
170 virtual bool SetMaster(); 175 virtual bool SetMaster();
171 virtual bool DropMaster(); 176 virtual bool DropMaster();
172 177
173 int get_fd() const { return file_.GetPlatformFile(); } 178 int get_fd() const { return file_.GetPlatformFile(); }
174 179
175 base::FilePath device_path() const { return device_path_; } 180 base::FilePath device_path() const { return device_path_; }
(...skipping 23 matching lines...) Expand all
199 scoped_ptr<IOWatcher> watcher_; 204 scoped_ptr<IOWatcher> watcher_;
200 205
201 bool is_primary_device_; 206 bool is_primary_device_;
202 207
203 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 208 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
204 }; 209 };
205 210
206 } // namespace ui 211 } // namespace ui
207 212
208 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 213 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/common/drm_util.cc ('k') | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698