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

Side by Side Diff: content/renderer/media/android/stream_texture_factory.h

Issue 2420083004: Delete SurfaceTexturePeer (Closed)
Patch Set: Fix missed references Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_ 5 #ifndef CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_ 6 #define CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <memory> 10 #include <memory>
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 void BindToTaskRunner( 46 void BindToTaskRunner(
47 const base::Closure& received_frame_cb, 47 const base::Closure& received_frame_cb,
48 scoped_refptr<base::SingleThreadTaskRunner> task_runner); 48 scoped_refptr<base::SingleThreadTaskRunner> task_runner);
49 49
50 // StreamTextureHost::Listener implementation: 50 // StreamTextureHost::Listener implementation:
51 void OnFrameAvailable() override; 51 void OnFrameAvailable() override;
52 52
53 // Set the streamTexture size. 53 // Set the streamTexture size.
54 void SetStreamTextureSize(const gfx::Size& size); 54 void SetStreamTextureSize(const gfx::Size& size);
55 55
56 // Send an IPC message to the browser process to request a java surface
57 // object for the given route_id. After the the surface is created,
58 // it will be passed back to the WebMediaPlayerAndroid object identified by
59 // the player_id.
60 void EstablishPeer(int player_id, int frame_id);
61
62 // Sends an IPC to the GPU process. 56 // Sends an IPC to the GPU process.
63 // Asks the StreamTexture to forward its SurfaceTexture to the 57 // Asks the StreamTexture to forward its SurfaceTexture to the
64 // ScopedSurfaceRequestManager, using the gpu::ScopedSurfaceRequestConduit. 58 // ScopedSurfaceRequestManager, using the gpu::ScopedSurfaceRequestConduit.
65 void ForwardStreamTextureForSurfaceRequest( 59 void ForwardStreamTextureForSurfaceRequest(
66 const base::UnguessableToken& request_token); 60 const base::UnguessableToken& request_token);
67 61
68 struct Deleter { 62 struct Deleter {
69 inline void operator()(StreamTextureProxy* ptr) const { ptr->Release(); } 63 inline void operator()(StreamTextureProxy* ptr) const { ptr->Release(); }
70 }; 64 };
71 private: 65 private:
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
123 117
124 scoped_refptr<ui::ContextProviderCommandBuffer> context_provider_; 118 scoped_refptr<ui::ContextProviderCommandBuffer> context_provider_;
125 scoped_refptr<gpu::GpuChannelHost> channel_; 119 scoped_refptr<gpu::GpuChannelHost> channel_;
126 120
127 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactory); 121 DISALLOW_IMPLICIT_CONSTRUCTORS(StreamTextureFactory);
128 }; 122 };
129 123
130 } // namespace content 124 } // namespace content
131 125
132 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_ 126 #endif // CONTENT_RENDERER_MEDIA_ANDROID_STREAM_TEXTURE_FACTORY_H_
OLDNEW
« 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