Index: content/renderer/gpu/stream_texture_host_android.h |
diff --git a/content/renderer/gpu/stream_texture_host_android.h b/content/renderer/gpu/stream_texture_host_android.h |
index 06fcf0f3ec6377216d21993007def885761b4e40..6dc480b04eafaa365a2bee448e95546a917dbf9a 100644 |
--- a/content/renderer/gpu/stream_texture_host_android.h |
+++ b/content/renderer/gpu/stream_texture_host_android.h |
@@ -13,6 +13,10 @@ |
#include "ipc/ipc_listener.h" |
#include "ipc/ipc_message.h" |
+namespace base { |
+class UnguessableToken; |
+} |
+ |
namespace gfx { |
class Size; |
} |
@@ -29,7 +33,8 @@ namespace content { |
// StreamTextureProxy. |
class StreamTextureHost : public IPC::Listener { |
public: |
- explicit StreamTextureHost(scoped_refptr<gpu::GpuChannelHost> channel); |
+ explicit StreamTextureHost(scoped_refptr<gpu::GpuChannelHost> channel, |
+ int32_t route_id); |
~StreamTextureHost() override; |
// Listener class that is listening to the stream texture updates. It is |
@@ -40,17 +45,22 @@ class StreamTextureHost : public IPC::Listener { |
virtual ~Listener() {} |
}; |
- bool BindToCurrentThread(int32_t stream_id, Listener* listener); |
+ bool BindToCurrentThread(Listener* listener); |
// IPC::Channel::Listener implementation: |
bool OnMessageReceived(const IPC::Message& message) override; |
void OnChannelError() override; |
+ void EstablishPeer(int player_id, int frame_id); |
+ void SetStreamTextureSize(const gfx::Size& size); |
+ void ForwardStreamTextureForSurfaceRequest( |
+ const base::UnguessableToken& request_token); |
+ |
private: |
// Message handlers: |
void OnFrameAvailable(); |
- int stream_id_; |
+ int32_t route_id_; |
Listener* listener_; |
scoped_refptr<gpu::GpuChannelHost> channel_; |
base::WeakPtrFactory<StreamTextureHost> weak_ptr_factory_; |