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

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: rebase to ToT 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
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_device.cc ('k') | ui/ozone/platform/drm/host/drm_device_handle.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 b360837eab6fe55e4a19c5bb83d7986be7010f89..4105e1750b3eb6e923e9097f6c53a27eefb701cf 100644
--- a/ui/ozone/platform/drm/host/drm_device_handle.h
+++ b/ui/ozone/platform/drm/host/drm_device_handle.h
@@ -20,13 +20,15 @@ class DrmDeviceHandle {
int fd() const { return file_.get(); }
- bool Initialize(const base::FilePath& path);
+ bool Initialize(const base::FilePath& path, bool is_vgem);
bool IsValid() const;
base::ScopedFD PassFD();
+ bool IsVgem() const { return is_vgem_; }
private:
base::ScopedFD file_;
+ bool is_vgem_;
DISALLOW_COPY_AND_ASSIGN(DrmDeviceHandle);
};
« no previous file with comments | « ui/ozone/platform/drm/gpu/gbm_device.cc ('k') | ui/ozone/platform/drm/host/drm_device_handle.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698