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

Unified Diff: mojo/converters/native_viewport/surface_configuration_type_converters.h

Issue 1168993002: Update the native_viewport interface to allow specification of the surface configuration, currently… (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Final cleanups Created 5 years, 6 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/native_viewport/surface_configuration_type_converters.h
diff --git a/mojo/converters/native_viewport/surface_configuration_type_converters.h b/mojo/converters/native_viewport/surface_configuration_type_converters.h
new file mode 100644
index 0000000000000000000000000000000000000000..4389adf8937a52e55cc1ef8b912c86c28ac2386a
--- /dev/null
+++ b/mojo/converters/native_viewport/surface_configuration_type_converters.h
@@ -0,0 +1,23 @@
+// 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 MOJO_CONVERTERS_NATIVE_VIEWPORT_SURFACE_CONFIGURATION_TYPE_CONVERTERS_H_
+#define MOJO_CONVERTERS_NATIVE_VIEWPORT_SURFACE_CONFIGURATION_TYPE_CONVERTERS_H_
+
+#include "base/memory/scoped_ptr.h"
+#include "mojo/services/native_viewport/public/interfaces/native_viewport.mojom.h"
+#include "ui/gl/gl_surface.h"
+
+namespace mojo {
+
+// Types from native_viewport.mojom
+template <>
+struct TypeConverter<gfx::SurfaceConfiguration, SurfaceConfigurationPtr> {
+ static gfx::SurfaceConfiguration Convert(
+ const SurfaceConfigurationPtr& input);
+};
+
+} // namespace mojo
+
+#endif // MOJO_CONVERTERS_NATIVE_VIEWPORT_SURFACE_CONFIGURATION_TYPE_CONVERTERS_H_
« no previous file with comments | « mojo/converters/native_viewport/BUILD.gn ('k') | mojo/converters/native_viewport/surface_configuration_type_converters.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698