| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/gfx/mojo/buffer_types_traits.h" | 5 #include "ui/gfx/mojo/buffer_types_struct_traits.h" |
| 6 | 6 |
| 7 #include "mojo/public/cpp/system/platform_handle.h" | 7 #include "mojo/public/cpp/system/platform_handle.h" |
| 8 | 8 |
| 9 namespace mojo { | 9 namespace mojo { |
| 10 | 10 |
| 11 void* StructTraits<gfx::mojom::NativePixmapHandleDataView, | 11 void* StructTraits<gfx::mojom::NativePixmapHandleDataView, |
| 12 gfx::NativePixmapHandle>:: | 12 gfx::NativePixmapHandle>:: |
| 13 SetUpContext(const gfx::NativePixmapHandle& pixmap_handle) { | 13 SetUpContext(const gfx::NativePixmapHandle& pixmap_handle) { |
| 14 return new PixmapHandleFdList(); | 14 return new PixmapHandleFdList(); |
| 15 } | 15 } |
| (...skipping 141 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 157 mojo::UnwrapMachPort(data.TakeMachPort(), &mach_port); | 157 mojo::UnwrapMachPort(data.TakeMachPort(), &mach_port); |
| 158 if (unwrap_result != MOJO_RESULT_OK) | 158 if (unwrap_result != MOJO_RESULT_OK) |
| 159 return false; | 159 return false; |
| 160 out->mach_port.reset(mach_port); | 160 out->mach_port.reset(mach_port); |
| 161 } | 161 } |
| 162 #endif | 162 #endif |
| 163 return true; | 163 return true; |
| 164 } | 164 } |
| 165 | 165 |
| 166 } // namespace mojo | 166 } // namespace mojo |
| OLD | NEW |