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

Side by Side Diff: remoting/protocol/frame_stats.h

Issue 2767193007: [Chromoting] Send DesktopFrame::capturer_id() to client through WebrtcVideoStream (Closed)
Patch Set: crash in msan Created 3 years, 8 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
« no previous file with comments | « remoting/proto/video_stats.proto ('k') | remoting/protocol/frame_stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 REMOTING_PROTOCOL_FRAME_STATS_H_ 5 #ifndef REMOTING_PROTOCOL_FRAME_STATS_H_
6 #define REMOTING_PROTOCOL_FRAME_STATS_H_ 6 #define REMOTING_PROTOCOL_FRAME_STATS_H_
7 7
8 #include "base/time/time.h" 8 #include "base/time/time.h"
9 #include "third_party/webrtc/modules/desktop_capture/desktop_capture_types.h"
9 10
10 namespace remoting { 11 namespace remoting {
11 12
12 class VideoPacket; 13 class VideoPacket;
13 class FrameStatsMessage; 14 class FrameStatsMessage;
14 15
15 namespace protocol { 16 namespace protocol {
16 17
17 struct HostFrameStats { 18 struct HostFrameStats {
18 HostFrameStats(); 19 HostFrameStats();
(...skipping 15 matching lines...) Expand all
34 35
35 // Set to TimeDelta::Max() when unknown. 36 // Set to TimeDelta::Max() when unknown.
36 base::TimeDelta capture_delay = base::TimeDelta::Max(); 37 base::TimeDelta capture_delay = base::TimeDelta::Max();
37 base::TimeDelta encode_delay = base::TimeDelta::Max(); 38 base::TimeDelta encode_delay = base::TimeDelta::Max();
38 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); 39 base::TimeDelta capture_pending_delay = base::TimeDelta::Max();
39 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); 40 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max();
40 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); 41 base::TimeDelta encode_pending_delay = base::TimeDelta::Max();
41 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); 42 base::TimeDelta send_pending_delay = base::TimeDelta::Max();
42 base::TimeDelta rtt_estimate = base::TimeDelta::Max(); 43 base::TimeDelta rtt_estimate = base::TimeDelta::Max();
43 int bandwidth_estimate_kbps = -1; 44 int bandwidth_estimate_kbps = -1;
45 uint32_t capturer_id = webrtc::DesktopCapturerId::kUnknown;
44 }; 46 };
45 47
46 struct ClientFrameStats { 48 struct ClientFrameStats {
47 ClientFrameStats(); 49 ClientFrameStats();
48 ClientFrameStats(const ClientFrameStats&); 50 ClientFrameStats(const ClientFrameStats&);
49 ~ClientFrameStats(); 51 ~ClientFrameStats();
50 ClientFrameStats& operator=(const ClientFrameStats&); 52 ClientFrameStats& operator=(const ClientFrameStats&);
51 53
52 base::TimeTicks time_received; 54 base::TimeTicks time_received;
53 base::TimeTicks time_decoded; 55 base::TimeTicks time_decoded;
(...skipping 13 matching lines...) Expand all
67 public: 69 public:
68 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; 70 virtual void OnVideoFrameStats(const FrameStats& stats) = 0;
69 protected: 71 protected:
70 virtual ~FrameStatsConsumer() {} 72 virtual ~FrameStatsConsumer() {}
71 }; 73 };
72 74
73 } // namespace protocol 75 } // namespace protocol
74 } // namespace remoting 76 } // namespace remoting
75 77
76 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ 78 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_
OLDNEW
« no previous file with comments | « remoting/proto/video_stats.proto ('k') | remoting/protocol/frame_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698