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

Side by Side Diff: cc/ipc/single_release_callback_struct_traits.h

Issue 2686833003: CopyOutputResult must have a working release callback when received over mojo (Closed)
Patch Set: c Created 3 years, 10 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 unified diff | Download patch
OLDNEW
(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_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698