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

Side by Side Diff: cc/resources/texture_mailbox_releaser_provider.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 2017 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_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
6 #define CC_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
7
8 namespace mojo {
9 template <class T>
10 class InterfacePtr;
11 } // namespace mojo
12
13 namespace cc {
14
15 namespace mojom {
16 class TextureMailboxReleaser;
17 typedef mojo::InterfacePtr<TextureMailboxReleaser> TextureMailboxReleaserPtr;
18 } // namespace mojom
19
20 class SingleReleaseCallback;
21
22 // SingleReleaseCallback cannot be sent over mojo. An implementation of
23 // TextureMailboxReleaserProvider takes in a SingleReleaseCallback and returns a
24 // TextureMailboxReleaserPtr which can be sent over mojo and upon
25 // calling Release() calls the given SingleReleaseCallback.
26 class TextureMailboxReleaserProvider {
27 public:
28 virtual mojom::TextureMailboxReleaserPtr GetTextureMailboxReleaser(
29 std::unique_ptr<SingleReleaseCallback> release_callback) = 0;
30 };
31
32 } // namespace cc
33
34 #endif // CC_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
OLDNEW
« cc/ipc/struct_traits_unittest.cc ('K') | « cc/output/copy_output_result.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698