OLD | NEW |
(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_ |
OLD | NEW |