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

Side by Side Diff: remoting/protocol/frame_stats.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 unified diff | Download patch
« no previous file with comments | « remoting/client/software_video_renderer.cc ('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
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef REMOTING_PROTOCOL_FRAME_STATS_H_
6 #define REMOTING_PROTOCOL_FRAME_STATS_H_
7
8 #include "base/time/time.h"
9
10 namespace remoting {
11
12 class VideoPacket;
13
14 namespace protocol {
15
16 // Struct used to track timestamp for various events in the video pipeline for a
17 // single video frame
18 struct FrameStats {
19 FrameStats();
20 FrameStats(const FrameStats&);
21 ~FrameStats();
22
23 // Copies timing fields from the |packet|.
24 static FrameStats GetForVideoPacket(const VideoPacket& packet);
25
26 int frame_size = 0;
27
28 // Set to null for frames that were not sent after a fresh input event.
29 base::TimeTicks latest_event_timestamp;
30
31 // Set to TimeDelta::Max() when unknown.
32 base::TimeDelta capture_delay = base::TimeDelta::Max();
33 base::TimeDelta encode_delay = base::TimeDelta::Max();
34 base::TimeDelta capture_pending_delay = base::TimeDelta::Max();
35 base::TimeDelta capture_overhead_delay = base::TimeDelta::Max();
36 base::TimeDelta encode_pending_delay = base::TimeDelta::Max();
37 base::TimeDelta send_pending_delay = base::TimeDelta::Max();
38
39 base::TimeTicks time_received;
40 base::TimeTicks time_decoded;
41 base::TimeTicks time_rendered;
42 };
43
44 } // namespace protocol
45 } // namespace remoting
46
47 #endif // REMOTING_PROTOCOL_FRAME_STATS_H_
OLDNEW
« no previous file with comments | « remoting/client/software_video_renderer.cc ('k') | remoting/protocol/frame_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698