| 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_
|
|
|