Upstream version 11.39.266.0
[platform/framework/web/crosswalk.git] / src / mojo / services / gles2 / command_buffer_type_conversions.h
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_
6 #define MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_
7
8 #include "gpu/command_buffer/common/command_buffer.h"
9 #include "mojo/public/cpp/bindings/type_converter.h"
10 #include "mojo/services/gles2/command_buffer.mojom.h"
11
12 namespace mojo {
13
14 class CommandBufferState;
15
16 template <>
17 struct TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State> {
18   static CommandBufferStatePtr Convert(const gpu::CommandBuffer::State& input);
19 };
20
21 template <>
22 struct TypeConverter<gpu::CommandBuffer::State, CommandBufferStatePtr> {
23   static gpu::CommandBuffer::State Convert(const CommandBufferStatePtr& input);
24 };
25
26 }  // namespace mojo
27
28 #endif  // MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_