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

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

Issue 1100803004: ozone: Add ability to set clinet capabilities which we will need for atomic (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert PS4 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
« no previous file with comments | « no previous file | 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <vector> 10 #include <vector>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 virtual bool CloseBufferHandle(uint32_t handle); 158 virtual bool CloseBufferHandle(uint32_t handle);
159 159
160 virtual bool CommitProperties(drmModePropertySet* properties, 160 virtual bool CommitProperties(drmModePropertySet* properties,
161 uint32_t flags, 161 uint32_t flags,
162 const PageFlipCallback& callback); 162 const PageFlipCallback& callback);
163 163
164 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|. 164 // Set the gamma ramp for |crtc_id| to reflect the ramps in |lut|.
165 virtual bool SetGammaRamp(uint32_t crtc_id, 165 virtual bool SetGammaRamp(uint32_t crtc_id,
166 const std::vector<GammaRampRGBEntry>& lut); 166 const std::vector<GammaRampRGBEntry>& lut);
167 167
168 virtual bool SetCapability(uint64_t capability, uint64_t value);
169
168 // Drm master related 170 // Drm master related
169 virtual bool SetMaster(); 171 virtual bool SetMaster();
170 virtual bool DropMaster(); 172 virtual bool DropMaster();
171 173
172 int get_fd() const { return file_.GetPlatformFile(); } 174 int get_fd() const { return file_.GetPlatformFile(); }
173 175
174 base::FilePath device_path() const { return device_path_; } 176 base::FilePath device_path() const { return device_path_; }
175 177
176 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); } 178 HardwareDisplayPlaneManager* plane_manager() { return plane_manager_.get(); }
177 179
(...skipping 21 matching lines...) Expand all
199 scoped_refptr<IOWatcher> watcher_; 201 scoped_refptr<IOWatcher> watcher_;
200 202
201 scoped_refptr<PageFlipManager> page_flip_manager_; 203 scoped_refptr<PageFlipManager> page_flip_manager_;
202 204
203 DISALLOW_COPY_AND_ASSIGN(DrmDevice); 205 DISALLOW_COPY_AND_ASSIGN(DrmDevice);
204 }; 206 };
205 207
206 } // namespace ui 208 } // namespace ui
207 209
208 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_ 210 #endif // UI_OZONE_PLATFORM_DRM_GPU_DRM_DEVICE_H_
OLDNEW
« no previous file with comments | « no previous file | ui/ozone/platform/drm/gpu/drm_device.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698