Index: mojo/services/gles2/command_buffer_type_conversions.cc |
diff --git a/mojo/services/gles2/command_buffer_type_conversions.cc b/mojo/services/gles2/command_buffer_type_conversions.cc |
index ccde8f0d87b3441963830c8506e374fb971cdb46..79b00197ed605d2d29499312f2dfac74eb579c95 100644 |
--- a/mojo/services/gles2/command_buffer_type_conversions.cc |
+++ b/mojo/services/gles2/command_buffer_type_conversions.cc |
@@ -4,34 +4,10 @@ |
#include "mojo/services/gles2/command_buffer_type_conversions.h" |
-#include <string.h> |
- |
#include "mojo/services/gles2/command_buffer.mojom.h" |
namespace mojo { |
-COMPILE_ASSERT(sizeof(base::SharedMemoryHandle) <= sizeof(uint64_t), |
- mojo_ShmHandle_too_small_for_base_SharedMemoryHandle); |
- |
-ShmHandle TypeConverter<ShmHandle, base::SharedMemoryHandle>::ConvertFrom( |
- const base::SharedMemoryHandle& input, |
- Buffer* buffer) { |
- ShmHandle::Builder result(buffer); |
- uint64_t handle = 0; |
- memcpy(&handle, &input, sizeof(input)); |
- result.set_handle_hack(handle); |
- return result.Finish(); |
-} |
- |
-base::SharedMemoryHandle |
-TypeConverter<ShmHandle, base::SharedMemoryHandle>::ConvertTo( |
- const ShmHandle& input) { |
- base::SharedMemoryHandle output; |
- uint64_t handle = input.handle_hack(); |
- memcpy(&output, &handle, sizeof(output)); |
- return output; |
-} |
- |
CommandBufferState |
TypeConverter<CommandBufferState, gpu::CommandBuffer::State>::ConvertFrom( |
const gpu::CommandBuffer::State& input, |