| Index: webkit/media/android/stream_texture_factory_android.h
|
| diff --git a/webkit/media/android/stream_texture_factory_android.h b/webkit/media/android/stream_texture_factory_android.h
|
| index ba83a4458322e460109916388a7db36a89b921b4..37247b36bcc10c6f4283ff7a2888a4cb1721eee1 100644
|
| --- a/webkit/media/android/stream_texture_factory_android.h
|
| +++ b/webkit/media/android/stream_texture_factory_android.h
|
| @@ -7,6 +7,7 @@
|
|
|
| #include "base/memory/scoped_ptr.h"
|
| #include "cc/layers/video_frame_provider.h"
|
| +#include "gpu/command_buffer/common/mailbox.h"
|
|
|
| namespace webkit_media {
|
|
|
| @@ -52,10 +53,18 @@ class StreamTextureFactory {
|
| // the player_id.
|
| virtual void EstablishPeer(int stream_id, int player_id) = 0;
|
|
|
| - // Create the streamTexture and return the stream Id and set the texture id.
|
| - virtual unsigned CreateStreamTexture(unsigned* texture_id) = 0;
|
| -
|
| - // Destroy the streamTexture for the given texture Id.
|
| + // Create the streamTexture and return the stream Id and create a client-side
|
| + // texture id to refer to the streamTexture. The texture id is produced into
|
| + // a mailbox so it can be used to ship in a VideoFrame, with a sync point for
|
| + // when the mailbox can be accessed.
|
| + virtual unsigned CreateStreamTexture(
|
| + unsigned texture_target,
|
| + unsigned* texture_id,
|
| + gpu::Mailbox* texture_mailbox,
|
| + unsigned* texture_mailbox_sync_point) = 0;
|
| +
|
| + // Destroy the streamTexture for the given texture id, as well as the
|
| + // client side texture.
|
| virtual void DestroyStreamTexture(unsigned texture_id) = 0;
|
| };
|
|
|
|
|