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_ |