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

Unified Diff: mojo/services/gles2/command_buffer_type_conversions.h

Issue 294833002: Mojo: more idiomatic C++ bindings (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more Created 6 years, 7 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/services/gles2/command_buffer_type_conversions.h
diff --git a/mojo/services/gles2/command_buffer_type_conversions.h b/mojo/services/gles2/command_buffer_type_conversions.h
index b2c471cdaa5c754e90bd8183c5909ac33ffffe87..b2334d008ac03d889a2929aae989118f29cc0b2f 100644
--- a/mojo/services/gles2/command_buffer_type_conversions.h
+++ b/mojo/services/gles2/command_buffer_type_conversions.h
@@ -7,20 +7,19 @@
#include "gpu/command_buffer/common/command_buffer.h"
#include "mojo/public/cpp/bindings/type_converter.h"
+#include "mojo/services/gles2/command_buffer.mojom.h"
namespace mojo {
class CommandBufferState;
-class Buffer;
template <>
-class TypeConverter<CommandBufferState, gpu::CommandBuffer::State> {
+class TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State> {
public:
- static CommandBufferState ConvertFrom(const gpu::CommandBuffer::State& input,
- Buffer* buffer);
- static gpu::CommandBuffer::State ConvertTo(const CommandBufferState& input);
-
- MOJO_ALLOW_IMPLICIT_TYPE_CONVERSION();
+ static CommandBufferStatePtr ConvertFrom(
+ const gpu::CommandBuffer::State& input);
+ static gpu::CommandBuffer::State ConvertTo(
+ const CommandBufferStatePtr& input);
};
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698