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

Unified Diff: ui/ozone/platform/drm/host/drm_device_handle.h

Issue 1124063003: drm: GPU process manages VGEM fd. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use LazyInstance 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 side-by-side diff with in-line comments
Download patch
Index: ui/ozone/platform/drm/host/drm_device_handle.h
diff --git a/ui/ozone/platform/drm/host/drm_device_handle.h b/ui/ozone/platform/drm/host/drm_device_handle.h
index a6affc3777954bebf514f5d739cd9774b3275d8d..622b9ec3a255e94c353a42b3c1bde7cc16d8a2d6 100644
--- a/ui/ozone/platform/drm/host/drm_device_handle.h
+++ b/ui/ozone/platform/drm/host/drm_device_handle.h
@@ -18,13 +18,15 @@ class DrmDeviceHandle {
DrmDeviceHandle();
~DrmDeviceHandle();
- bool Initialize(const base::FilePath& path);
+ bool Initialize(const base::FilePath& path, bool is_vgem);
bool IsValid() const;
base::ScopedFD Duplicate();
+ bool IsVgem() const { return is_vgem_; }
private:
base::ScopedFD file_;
+ bool is_vgem_;
DISALLOW_COPY_AND_ASSIGN(DrmDeviceHandle);
};

Powered by Google App Engine
This is Rietveld 408576698