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

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

Issue 1028563003: Load and apply a vcgt table from an ICC file to the internal display (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix spang/oshima nits Created 5 years, 7 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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
151 151
152 virtual void DestroyDumbBuffer(const SkImageInfo& info, 152 virtual void DestroyDumbBuffer(const SkImageInfo& info,
153 uint32_t handle, 153 uint32_t handle,
154 uint32_t stride, 154 uint32_t stride,
155 void* pixels); 155 void* pixels);
156 156
157 virtual bool CommitProperties(drmModePropertySet* properties, 157 virtual bool CommitProperties(drmModePropertySet* properties,
158 uint32_t flags, 158 uint32_t flags,
159 const PageFlipCallback& callback); 159 const PageFlipCallback& callback);
160 160
161 // Set the gamma ramp for |crtc_id| to reflect the ramps in |r|, |g| and |b|.
162 virtual bool SetGammaRamp(uint32_t crtc_id,
163 const std::vector<uint16_t>& r,
164 const std::vector<uint16_t>& g,
165 const std::vector<uint16_t>& b);
166
161 // Drm master related 167 // Drm master related
162 virtual bool SetMaster(); 168 virtual bool SetMaster();
163 virtual bool DropMaster(); 169 virtual bool DropMaster();
164 170
165 int get_fd() const { return file_.GetPlatformFile(); } 171 int get_fd() const { return file_.GetPlatformFile(); }
166 172
167 base::FilePath device_path() const { return device_path_; } 173 base::FilePath device_path() const { return device_path_; }
168 174
169 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } 175 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); }
170 176
(...skipping 18 matching lines...) Expand all
189 195
190 // Watcher for |fd_| listening for page flip events. 196 // Watcher for |fd_| listening for page flip events.
191 scoped_refptr<IOWatcher> watcher_; 197 scoped_refptr<IOWatcher> watcher_;
192 198
193 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 199 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
194 }; 200 };
195 201
196 } // namespace ui 202 } // namespace ui
197 203
198 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 204 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698