OLD | NEW |
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 Loading... |
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 Loading... |
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_ |
OLD | NEW |