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

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

Issue 1064453003: [4/4][Ozone-Drm] Keep track of DRM devices in browser process (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@change-page-flip-tracking
Patch Set: Update due to change in ScopedPtrHashMap definition Created 5 years, 8 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/drm.gypi ('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
new file mode 100644
index 0000000000000000000000000000000000000000..a6affc3777954bebf514f5d739cd9774b3275d8d
--- /dev/null
+++ b/ui/ozone/platform/drm/host/drm_device_handle.h
@@ -0,0 +1,34 @@
+// Copyright 2015 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
+#define UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
+
+#include "base/files/scoped_file.h"
+
+namespace base {
+class FilePath;
+}
+
+namespace ui {
+
+class DrmDeviceHandle {
+ public:
+ DrmDeviceHandle();
+ ~DrmDeviceHandle();
+
+ bool Initialize(const base::FilePath& path);
+
+ bool IsValid() const;
+ base::ScopedFD Duplicate();
+
+ private:
+ base::ScopedFD file_;
+
+ DISALLOW_COPY_AND_ASSIGN(DrmDeviceHandle);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRM_HOST_DRM_DEVICE_HANDLE_H_
« no previous file with comments | « ui/ozone/platform/drm/drm.gypi ('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