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

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

Issue 1151533002: drm: Make DrmDisplayHostManager handle VGEM fd by itself. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: use ScopedFD Created 5 years, 6 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 | « no previous file | ui/ozone/platform/drm/host/drm_display_host_manager.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_display_host_manager.h
diff --git a/ui/ozone/platform/drm/host/drm_display_host_manager.h b/ui/ozone/platform/drm/host/drm_display_host_manager.h
index 41156ea2f5589e9b6ff48cfdb4b7f4edde3f87cd..a6fff214f7d9c2e347de4e4c65e5ff0172cf54af 100644
--- a/ui/ozone/platform/drm/host/drm_display_host_manager.h
+++ b/ui/ozone/platform/drm/host/drm_display_host_manager.h
@@ -8,7 +8,7 @@
#include <queue>
#include <set>
-#include "base/files/file_path.h"
+#include "base/files/scoped_file.h"
#include "base/memory/scoped_vector.h"
#include "base/memory/weak_ptr.h"
#include "ui/display/types/native_display_delegate.h"
@@ -95,6 +95,9 @@ class DrmDisplayHostManager : public DeviceEventObserver,
// with the GPU process trying to open it and aquire DRM master.
base::FilePath primary_graphics_card_path_;
+ // File path for virtual gem (VGEM) device.
+ base::FilePath vgem_card_path_;
+
// Keeps track if there is a dummy display. This happens on initialization
// when there is no connection to the GPU to update the displays.
bool has_dummy_display_;
@@ -119,6 +122,9 @@ class DrmDisplayHostManager : public DeviceEventObserver,
// established.
scoped_ptr<DrmDeviceHandle> primary_drm_device_handle_;
+ // Manages the VGEM device by itself and doesn't send it to GPU process.
+ base::ScopedFD vgem_card_device_file_;
+
base::WeakPtrFactory<DrmDisplayHostManager> weak_ptr_factory_;
DISALLOW_COPY_AND_ASSIGN(DrmDisplayHostManager);
« no previous file with comments | « no previous file | ui/ozone/platform/drm/host/drm_display_host_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698