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.
5 #ifndef MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_
6 #define MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_
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"
14 class CommandBufferState;
17 struct TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State> {
18 static CommandBufferStatePtr Convert(const gpu::CommandBuffer::State& input);
22 struct TypeConverter<gpu::CommandBuffer::State, CommandBufferStatePtr> {
23 static gpu::CommandBuffer::State Convert(const CommandBufferStatePtr& input);
28 #endif // MOJO_SERVICES_GLES2_COMMAND_BUFFER_TYPE_CONVERSIONS_H_