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

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

Issue 507173003: Change TypeConverter<X,Y>::ConvertFrom and ConvertTo into a single symmetric (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: compile for real Created 6 years, 3 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 b2334d008ac03d889a2929aae989118f29cc0b2f..2579681c7d672dfa10213c3213c33c41eb70caa4 100644
--- a/mojo/services/gles2/command_buffer_type_conversions.h
+++ b/mojo/services/gles2/command_buffer_type_conversions.h
@@ -14,12 +14,13 @@ namespace mojo {
class CommandBufferState;
template <>
-class TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State> {
- public:
- static CommandBufferStatePtr ConvertFrom(
- const gpu::CommandBuffer::State& input);
- static gpu::CommandBuffer::State ConvertTo(
- const CommandBufferStatePtr& input);
+struct TypeConverter<CommandBufferStatePtr, gpu::CommandBuffer::State> {
+ static CommandBufferStatePtr Convert(const gpu::CommandBuffer::State& input);
+};
+
+template <>
+struct TypeConverter<gpu::CommandBuffer::State, CommandBufferStatePtr> {
+ static gpu::CommandBuffer::State Convert(const CommandBufferStatePtr& input);
};
} // namespace mojo

Powered by Google App Engine
This is Rietveld 408576698