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

Unified Diff: ui/ozone/public/platform/drm_intel_buffer_manager.h

Issue 1071273002: NotForReview: Implement zero/one-copy texture for ozone freon using Intel DRM Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: ui/ozone/public/platform/drm_intel_buffer_manager.h
diff --git a/ui/ozone/public/platform/drm_intel_buffer_manager.h b/ui/ozone/public/platform/drm_intel_buffer_manager.h
new file mode 100644
index 0000000000000000000000000000000000000000..43d12e6c6f59cf21ee8285bd80d87a312d8ad8f7
--- /dev/null
+++ b/ui/ozone/public/platform/drm_intel_buffer_manager.h
@@ -0,0 +1,35 @@
+// 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_PUBLIC_PLATFORM_DRM_INTEL_BUFFER_MANAGER_H_
+#define UI_OZONE_PUBLIC_PLATFORM_DRM_INTEL_BUFFER_MANAGER_H_
+
+#include "base/file_descriptor_posix.h"
+#include "base/memory/scoped_ptr.h"
+#include "base/threading/thread_checker.h"
+#include "ui/ozone/ozone_export.h"
+
+typedef struct _drm_intel_bufmgr drm_intel_bufmgr;
+
+namespace ui {
+
+class OZONE_EXPORT DrmIntelBufferManager {
+ public:
+ DrmIntelBufferManager();
+ ~DrmIntelBufferManager();
+ bool Initialize(const base::FileDescriptor& device_fd);
+ drm_intel_bufmgr* buffer_manager() const;
+ int device_fd() const;
+
+ private:
+ base::FileDescriptor device_fd_;
+ drm_intel_bufmgr* buffer_manager_;
+ base::ThreadChecker thread_checker_;
+
+ DISALLOW_COPY_AND_ASSIGN(DrmIntelBufferManager);
+};
+
+} // namespace ui
+
+#endif // UI_OZONE_PUBLIC_PLATFORM_DRM_INTEL_BUFFER_MANAGER_H_

Powered by Google App Engine
This is Rietveld 408576698