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

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

Issue 2779483002: Revert of [Chromoting] Send DesktopFrame::capturer_id() to client through WebrtcVideoStream (Closed)
Patch Set: 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"
10 9
11 namespace remoting { 10 namespace remoting {
12 11
13 class VideoPacket; 12 class VideoPacket;
14 class FrameStatsMessage; 13 class FrameStatsMessage;
15 14
16 namespace protocol { 15 namespace protocol {
17 16
18 struct HostFrameStats { 17 struct HostFrameStats {
19 HostFrameStats(); 18 HostFrameStats();
(...skipping 15 matching lines...) Expand all
35 34
36 // Set to TimeDelta::Max() when unknown. 35 // Set to TimeDelta::Max() when unknown.
37 base::TimeDelta capture_delay = base::TimeDelta::Max(); 36 base::TimeDelta capture_delay = base::TimeDelta::Max();
38 base::TimeDelta encode_delay = base::TimeDelta::Max(); 37 base::TimeDelta encode_delay = base::TimeDelta::Max();
39 base::TimeDelta capture_pending_delay = base::TimeDelta::Max(); 38 base::TimeDelta capture_pending_delay = base::TimeDelta::Max();
40 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max(); 39 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max();
41 base::TimeDelta encode_pending_delay = base::TimeDelta::Max(); 40 base::TimeDelta encode_pending_delay = base::TimeDelta::Max();
42 base::TimeDelta send_pending_delay = base::TimeDelta::Max(); 41 base::TimeDelta send_pending_delay = base::TimeDelta::Max();
43 base::TimeDelta rtt_estimate = base::TimeDelta::Max(); 42 base::TimeDelta rtt_estimate = base::TimeDelta::Max();
44 int bandwidth_estimate_kbps = -1; 43 int bandwidth_estimate_kbps = -1;
45 uint32_t capturer_id = webrtc::DesktopCapturerId::kUnknown;
46 }; 44 };
47 45
48 struct ClientFrameStats { 46 struct ClientFrameStats {
49 ClientFrameStats(); 47 ClientFrameStats();
50 ClientFrameStats(const ClientFrameStats&); 48 ClientFrameStats(const ClientFrameStats&);
51 ~ClientFrameStats(); 49 ~ClientFrameStats();
52 ClientFrameStats& operator=(const ClientFrameStats&); 50 ClientFrameStats& operator=(const ClientFrameStats&);
53 51
54 base::TimeTicks time_received; 52 base::TimeTicks time_received;
55 base::TimeTicks time_decoded; 53 base::TimeTicks time_decoded;
(...skipping 13 matching lines...) Expand all
69 public: 67 public:
70 virtual void OnVideoFrameStats(const FrameStats& stats) = 0; 68 virtual void OnVideoFrameStats(const FrameStats& stats) = 0;
71 protected: 69 protected:
72 virtual ~FrameStatsConsumer() {} 70 virtual ~FrameStatsConsumer() {}
73 }; 71 };
74 72
75 } // namespace protocol 73 } // namespace protocol
76 } // namespace remoting 74 } // namespace remoting
77 75
78 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_ 76 #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