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

Unified Diff: content/renderer/media/android/stream_texture_factory.h

Issue 2530443002: Fix OnChannelError() in StreamTextureHost (Closed)
Patch Set: Addressed comments Created 4 years, 1 month 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
Index: content/renderer/media/android/stream_texture_factory.h
diff --git a/content/renderer/media/android/stream_texture_factory.h b/content/renderer/media/android/stream_texture_factory.h
index a474d245814e367bacedb816cfe8f624d8faef0f..ca3a61302ab6527dc984571350e2caf599e80773 100644
--- a/content/renderer/media/android/stream_texture_factory.h
+++ b/content/renderer/media/android/stream_texture_factory.h
@@ -67,7 +67,7 @@ class StreamTextureProxy : public StreamTextureHost::Listener {
};
private:
friend class StreamTextureFactory;
- explicit StreamTextureProxy(StreamTextureHost* host);
+ explicit StreamTextureProxy(std::unique_ptr<StreamTextureHost> host);
void BindOnThread();
void Release();
@@ -100,9 +100,9 @@ class CONTENT_EXPORT StreamTextureFactory
// nullptr is returned and *texture_id will be set to 0. If the route_id is
// valid it returns StreamTextureProxy object. The caller needs to take care
// of cleaning up the texture_id.
- StreamTextureProxy* CreateProxy(unsigned texture_target,
- unsigned* texture_id,
- gpu::Mailbox* texture_mailbox);
+ ScopedStreamTextureProxy CreateProxy(unsigned texture_target,
+ unsigned* texture_id,
+ gpu::Mailbox* texture_mailbox);
gpu::gles2::GLES2Interface* ContextGL();
« no previous file with comments | « content/renderer/gpu/stream_texture_host_android.cc ('k') | content/renderer/media/android/stream_texture_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698