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

Unified Diff: content/renderer/gpu/stream_texture_host_android.h

Issue 2390783003: Make stream_id internal to StreamTextureHost. (Closed)
Patch Set: Handle failure conditions of route_id. Created 4 years, 2 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
« no previous file with comments | « no previous file | content/renderer/gpu/stream_texture_host_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_;
« no previous file with comments | « no previous file | content/renderer/gpu/stream_texture_host_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698