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

Unified Diff: mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h

Issue 1309273005: native_viewport support for ozone (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: rebased 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: mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h
diff --git a/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h b/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..3bf0181689e540f7dc0e4e8cc1b8f92c21e9459d
--- /dev/null
+++ b/mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.h
@@ -0,0 +1,37 @@
+// 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 MOJO_CONVERTERS_OZONE_DRM_GPU_OZONE_DRM_GPU_TYPE_CONVERTERS_H_
+#define MOJO_CONVERTERS_OZONE_DRM_GPU_OZONE_DRM_GPU_TYPE_CONVERTERS_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "mojo/services/ozone_drm_gpu/public/interfaces/ozone_drm_gpu.mojom.h"
+#include "ui/ozone/common/gpu/ozone_gpu_message_params.h"
+
+namespace mojo {
+
+// Types from ozone_drm_gpu.mojom
+template <>
+struct TypeConverter<ui::DisplayMode_Params, DisplayModePtr> {
+ static ui::DisplayMode_Params Convert(const DisplayModePtr& in);
+};
+
+template <>
+struct TypeConverter<DisplayModePtr, ui::DisplayMode_Params> {
+ static DisplayModePtr Convert(const ui::DisplayMode_Params& in);
+};
+
+template <>
+struct TypeConverter<ui::DisplaySnapshot_Params, DisplaySnapshotPtr> {
+ static ui::DisplaySnapshot_Params Convert(const DisplaySnapshotPtr& in);
+};
+
+template <>
+struct TypeConverter<DisplaySnapshotPtr, ui::DisplaySnapshot_Params> {
+ static DisplaySnapshotPtr Convert(const ui::DisplaySnapshot_Params& in);
+};
+
+} // namespace mojo
+
+#endif // MOJO_CONVERTERS_OZONE_DRM_GPU_OZONE_DRM_GPU_TYPE_CONVERTERS_H_
« no previous file with comments | « mojo/converters/ozone_drm_gpu/BUILD.gn ('k') | mojo/converters/ozone_drm_gpu/ozone_drm_gpu_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698