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); |