Chromium Code Reviews (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out

Unified Diff: ui/ozone/platform/drm/gpu/

Issue 2472213002: Ozone Linux: Fix build errors with chromeos==0 ozone_platform_drm=true (Closed)
Patch Set: Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/gpu/
diff --git a/ui/ozone/platform/drm/gpu/ b/ui/ozone/platform/drm/gpu/
index 462ec641a43a63eb596a8a0c1d0689b216eec02c..03ac08417b654c485fa12c3dcd8168074ce09862 100644
--- a/ui/ozone/platform/drm/gpu/
+++ b/ui/ozone/platform/drm/gpu/
@@ -670,7 +670,21 @@ bool DrmDevice::CommitProperties(drmModeAtomicReq* properties,
bool DrmDevice::SetCapability(uint64_t capability, uint64_t value) {
- return !drmSetClientCap(file_.GetPlatformFile(), capability, value);
+// drmSetClientCap was introduced in a later version of libdrm than the wheezy
+// sysroot supplies.
+// TODO(thomasanderson): Remove this when support for the wheezy sysroot is
+// dropped in favor of jessie.
+#define DRM_IOCTL_SET_CLIENT_CAP DRM_IOW(0x0d, struct drm_set_client_cap)
+ struct drm_set_client_cap {
+ __u64 capability;
+ __u64 value;
+ };
+ struct drm_set_client_cap cap = {capability, value};
+ return !drmIoctl(file_.GetPlatformFile(), DRM_IOCTL_SET_CLIENT_CAP, &cap);
bool DrmDevice::SetMaster() {

Powered by Google App Engine
This is Rietveld 408576698