Chromium Code Reviews

Side by Side Diff: ui/ozone/platform/drm/host/drm_device_handle.cc

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase after ClientNativePixmap is introduced Created 5 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 #include "ui/ozone/platform/drm/host/drm_device_handle.h" 5 #include "ui/ozone/platform/drm/host/drm_device_handle.h"
6 6
7 #include <fcntl.h> 7 #include <fcntl.h>
8 #include <xf86drm.h> 8 #include <xf86drm.h>
9 #include <xf86drmMode.h> 9 #include <xf86drmMode.h>
10 10
(...skipping 50 matching lines...)
61 } 61 }
62 62
63 bool DrmDeviceHandle::IsValid() const { 63 bool DrmDeviceHandle::IsValid() const {
64 return file_.is_valid(); 64 return file_.is_valid();
65 } 65 }
66 66
67 base::ScopedFD DrmDeviceHandle::PassFD() { 67 base::ScopedFD DrmDeviceHandle::PassFD() {
68 return file_.Pass(); 68 return file_.Pass();
69 } 69 }
70 70
71 int DrmDeviceHandle::GetFD() {
72 return file_.get();
73 }
74
71 } // namespace ui 75 } // namespace ui
OLDNEW
« no previous file with comments | « ui/ozone/platform/drm/host/drm_device_handle.h ('k') | ui/ozone/platform/drm/host/drm_display_host_manager.h » ('j') | no next file with comments »

Powered by Google App Engine