OLD | NEW |
(Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CC_IPC_SINGLE_RELEASE_CALLBACK_STRUCT_TRAITS_H_ |
| 6 #define CC_IPC_SINGLE_RELEASE_CALLBACK_STRUCT_TRAITS_H_ |
| 7 |
| 8 #include "cc/ipc/single_release_callback.mojom-shared.h" |
| 9 #include "cc/resources/single_release_callback.h" |
| 10 |
| 11 namespace mojo { |
| 12 |
| 13 template <> |
| 14 struct StructTraits<cc::mojom::SingleReleaseCallbackDataView, |
| 15 std::unique_ptr<cc::SingleReleaseCallback>> { |
| 16 static cc::mojom::TextureMailboxReleaserPtr releaser( |
| 17 const std::unique_ptr<cc::SingleReleaseCallback>& callback); |
| 18 |
| 19 static bool Read(cc::mojom::SingleReleaseCallbackDataView data, |
| 20 std::unique_ptr<cc::SingleReleaseCallback>* out); |
| 21 }; |
| 22 |
| 23 } // namespace mojo |
| 24 |
| 25 #endif // CC_IPC_SINGLE_RELEASE_CALLBACK_STRUCT_TRAITS_H_ |
OLD | NEW |