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

Unified 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 side-by-side diff with in-line comments
Download patch
« cc/ipc/struct_traits_unittest.cc ('K') | « cc/output/copy_output_result.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/resources/texture_mailbox_releaser_provider.h
diff --git a/cc/resources/texture_mailbox_releaser_provider.h b/cc/resources/texture_mailbox_releaser_provider.h
new file mode 100644
index 0000000000000000000000000000000000000000..f24dbdcb5dab988764af0c5ef93051f45e92aaaa
--- /dev/null
+++ b/cc/resources/texture_mailbox_releaser_provider.h
@@ -0,0 +1,34 @@
+// Copyright 2017 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CC_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
+#define CC_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
+
+namespace mojo {
+template <class T>
+class InterfacePtr;
+} // namespace mojo
+
+namespace cc {
+
+namespace mojom {
+class TextureMailboxReleaser;
+typedef mojo::InterfacePtr<TextureMailboxReleaser> TextureMailboxReleaserPtr;
+} // namespace mojom
+
+class SingleReleaseCallback;
+
+// SingleReleaseCallback cannot be sent over mojo. An implementation of
+// TextureMailboxReleaserProvider takes in a SingleReleaseCallback and returns a
+// TextureMailboxReleaserPtr which can be sent over mojo and upon
+// calling Release() calls the given SingleReleaseCallback.
+class TextureMailboxReleaserProvider {
+ public:
+ virtual mojom::TextureMailboxReleaserPtr GetTextureMailboxReleaser(
+ std::unique_ptr<SingleReleaseCallback> release_callback) = 0;
+};
+
+} // namespace cc
+
+#endif // CC_RESOURCES_TEXTURE_MAILBOX_RELEASER_PROVIDER_H_
« 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