Index: mojo/converters/native_viewport/surface_configuration_type_converters.cc |
diff --git a/mojo/converters/native_viewport/surface_configuration_type_converters.cc b/mojo/converters/native_viewport/surface_configuration_type_converters.cc |
new file mode 100644 |
index 0000000000000000000000000000000000000000..2719f056ddc06f9967bb7191b0e405440835dffc |
--- /dev/null |
+++ b/mojo/converters/native_viewport/surface_configuration_type_converters.cc |
@@ -0,0 +1,23 @@ |
+// 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. |
+ |
+#include "mojo/converters/native_viewport/surface_configuration_type_converters.h" |
+ |
+namespace mojo { |
+ |
+// static |
+gfx::SurfaceConfiguration |
+TypeConverter<gfx::SurfaceConfiguration, SurfaceConfigurationPtr>::Convert( |
+ const SurfaceConfigurationPtr& input) { |
+ auto output = gfx::SurfaceConfiguration(); |
+ output.red_bits = input->red_bits; |
+ output.green_bits = input->green_bits; |
+ output.blue_bits = input->blue_bits; |
+ output.alpha_bits = input->alpha_bits; |
+ output.depth_bits = input->depth_bits; |
+ output.stencil_bits = input->stencil_bits; |
+ return output; |
+} |
+ |
+} // namespace mojo |