| OLD | NEW |
| (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_ |
| OLD | NEW |