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

Unified Diff: ui/ozone/platform/drm/common/scoped_drm_types.h

Issue 1285183008: Ozone integration. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: add missing license header Created 5 years, 4 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/platform/drm/common/scoped_drm_types.h
diff --git a/ui/ozone/platform/drm/common/scoped_drm_types.h b/ui/ozone/platform/drm/common/scoped_drm_types.h
new file mode 100644
index 0000000000000000000000000000000000000000..02f1eb5ab04261eaf0335893b800ab5a68ddc0f3
--- /dev/null
+++ b/ui/ozone/platform/drm/common/scoped_drm_types.h
@@ -0,0 +1,80 @@
+// Copyright 2014 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_COMMON_SCOPED_DRM_TYPES_H_
+#define UI_OZONE_PLATFORM_DRM_COMMON_SCOPED_DRM_TYPES_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "ui/ozone/ozone_export.h"
+
+typedef struct _drmModeConnector drmModeConnector;
+typedef struct _drmModeCrtc drmModeCrtc;
+typedef struct _drmModeEncoder drmModeEncoder;
+typedef struct _drmModeFB drmModeFB;
+typedef struct _drmModeObjectProperties drmModeObjectProperties;
+typedef struct _drmModePlane drmModePlane;
+typedef struct _drmModePlaneRes drmModePlaneRes;
+typedef struct _drmModeProperty drmModePropertyRes;
+typedef struct _drmModePropertySet drmModePropertySet;
+typedef struct _drmModePropertyBlob drmModePropertyBlobRes;
+typedef struct _drmModeRes drmModeRes;
+
+namespace ui {
+
+struct OZONE_EXPORT DrmResourcesDeleter {
+ void operator()(drmModeRes* resources) const;
+};
+struct OZONE_EXPORT DrmConnectorDeleter {
+ void operator()(drmModeConnector* connector) const;
+};
+struct OZONE_EXPORT DrmCrtcDeleter {
+ void operator()(drmModeCrtc* crtc) const;
+};
+struct OZONE_EXPORT DrmEncoderDeleter {
+ void operator()(drmModeEncoder* encoder) const;
+};
+struct OZONE_EXPORT DrmObjectPropertiesDeleter {
+ void operator()(drmModeObjectProperties* properties) const;
+};
+struct OZONE_EXPORT DrmPlaneDeleter {
+ void operator()(drmModePlane* plane) const;
+};
+struct OZONE_EXPORT DrmPlaneResDeleter {
+ void operator()(drmModePlaneRes* plane_res) const;
+};
+struct OZONE_EXPORT DrmPropertyDeleter {
+ void operator()(drmModePropertyRes* property) const;
+};
+#if defined(USE_DRM_ATOMIC)
+struct OZONE_EXPORT DrmPropertySetDeleter {
+ void operator()(drmModePropertySet* property) const;
+};
+#endif // defined(USE_DRM_ATOMIC)
+struct OZONE_EXPORT DrmPropertyBlobDeleter {
+ void operator()(drmModePropertyBlobRes* property) const;
+};
+struct OZONE_EXPORT DrmFramebufferDeleter {
+ void operator()(drmModeFB* framebuffer) const;
+};
+
+typedef scoped_ptr<drmModeRes, DrmResourcesDeleter> ScopedDrmResourcesPtr;
+typedef scoped_ptr<drmModeConnector, DrmConnectorDeleter> ScopedDrmConnectorPtr;
+typedef scoped_ptr<drmModeCrtc, DrmCrtcDeleter> ScopedDrmCrtcPtr;
+typedef scoped_ptr<drmModeEncoder, DrmEncoderDeleter> ScopedDrmEncoderPtr;
+typedef scoped_ptr<drmModeObjectProperties, DrmObjectPropertiesDeleter>
+ ScopedDrmObjectPropertyPtr;
+typedef scoped_ptr<drmModePlane, DrmPlaneDeleter> ScopedDrmPlanePtr;
+typedef scoped_ptr<drmModePlaneRes, DrmPlaneResDeleter> ScopedDrmPlaneResPtr;
+typedef scoped_ptr<drmModePropertyRes, DrmPropertyDeleter> ScopedDrmPropertyPtr;
+#if defined(USE_DRM_ATOMIC)
+typedef scoped_ptr<drmModePropertySet, DrmPropertySetDeleter>
+ ScopedDrmPropertySetPtr;
+#endif // defined(USE_DRM_ATOMIC)
+typedef scoped_ptr<drmModePropertyBlobRes, DrmPropertyBlobDeleter>
+ ScopedDrmPropertyBlobPtr;
+typedef scoped_ptr<drmModeFB, DrmFramebufferDeleter> ScopedDrmFramebufferPtr;
+
+} // namespace ui
+
+#endif // UI_OZONE_PLATFORM_DRM_COMMON_SCOPED_DRM_TYPES_H_
« no previous file with comments | « ui/ozone/platform/drm/common/inprocess_messages.cc ('k') | ui/ozone/platform/drm/common/scoped_drm_types.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698