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

Unified Diff: remoting/protocol/webrtc_video_renderer_adapter.h

Issue 2113523007: More cleanups in FrameStats (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix android Created 4 years, 5 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 | « remoting/protocol/webrtc_connection_to_host.cc ('k') | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_renderer_adapter.h
diff --git a/remoting/protocol/webrtc_video_renderer_adapter.h b/remoting/protocol/webrtc_video_renderer_adapter.h
index 7f82d7afcecb06d9e8188d7914d91ddfc5b066d0..e085129e1ca9f1a3515188e989499a95922a6a94 100644
--- a/remoting/protocol/webrtc_video_renderer_adapter.h
+++ b/remoting/protocol/webrtc_video_renderer_adapter.h
@@ -24,15 +24,15 @@ class VideoFrameBuffer;
namespace remoting {
namespace protocol {
-class FrameConsumer;
-struct FrameStats;
+struct ClientFrameStats;
+class VideoRenderer;
class WebrtcVideoRendererAdapter
: public rtc::VideoSinkInterface<cricket::VideoFrame> {
public:
WebrtcVideoRendererAdapter(
scoped_refptr<webrtc::MediaStreamInterface> media_stream,
- FrameConsumer* frame_consumer);
+ VideoRenderer* video_renderer);
~WebrtcVideoRendererAdapter() override;
std::string label() const { return media_stream_->label(); }
@@ -41,14 +41,14 @@ class WebrtcVideoRendererAdapter
void OnFrame(const cricket::VideoFrame& frame) override;
private:
- void HandleFrameOnMainThread(std::unique_ptr<FrameStats> stats,
+ void HandleFrameOnMainThread(std::unique_ptr<ClientFrameStats> stats,
scoped_refptr<webrtc::VideoFrameBuffer> frame);
- void DrawFrame(std::unique_ptr<FrameStats> stats,
+ void DrawFrame(std::unique_ptr<ClientFrameStats> stats,
std::unique_ptr<webrtc::DesktopFrame> frame);
- void FrameRendered(std::unique_ptr<FrameStats> stats);
+ void FrameRendered(std::unique_ptr<ClientFrameStats> stats);
scoped_refptr<webrtc::MediaStreamInterface> media_stream_;
- FrameConsumer* frame_consumer_;
+ VideoRenderer* video_renderer_;
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
base::WeakPtrFactory<WebrtcVideoRendererAdapter> weak_factory_;
« no previous file with comments | « remoting/protocol/webrtc_connection_to_host.cc ('k') | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698