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

Unified Diff: remoting/protocol/webrtc_video_renderer_adapter.h

Issue 2096643003: Rework PerformanceTracker to make it usable with WebRTC (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address feedback Created 4 years, 6 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/performance_tracker.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 2ff65af133d2d8072ab18c31d9a7f4a8ab3a3679..093a1deaf5e3eb463bf29a2998b88bfe8001fc22 100644
--- a/remoting/protocol/webrtc_video_renderer_adapter.h
+++ b/remoting/protocol/webrtc_video_renderer_adapter.h
@@ -25,6 +25,7 @@ namespace remoting {
namespace protocol {
class FrameConsumer;
+struct FrameStats;
class WebrtcVideoRendererAdapter
: public rtc::VideoSinkInterface<cricket::VideoFrame> {
@@ -40,8 +41,11 @@ class WebrtcVideoRendererAdapter
void OnFrame(const cricket::VideoFrame& frame) override;
private:
- void HandleFrameOnMainThread(scoped_refptr<webrtc::VideoFrameBuffer> frame);
- void DrawFrame(std::unique_ptr<webrtc::DesktopFrame> frame);
+ void HandleFrameOnMainThread(std::unique_ptr<FrameStats> stats,
+ scoped_refptr<webrtc::VideoFrameBuffer> frame);
+ void DrawFrame(std::unique_ptr<FrameStats> stats,
+ std::unique_ptr<webrtc::DesktopFrame> frame);
+ void FrameRendered(std::unique_ptr<FrameStats> stats);
scoped_refptr<webrtc::MediaStreamInterface> media_stream_;
FrameConsumer* frame_consumer_;
« no previous file with comments | « remoting/protocol/performance_tracker.cc ('k') | remoting/protocol/webrtc_video_renderer_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698