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

Unified Diff: webrtc/modules/video_coding/packet_buffer.h

Issue 2124943002: Added various timestamps to FrameObject. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Renamed |received_timestamp| to |received_time|. Created 4 years, 5 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 | « webrtc/modules/video_coding/frame_object.cc ('k') | webrtc/modules/video_coding/packet_buffer.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/modules/video_coding/packet_buffer.h
diff --git a/webrtc/modules/video_coding/packet_buffer.h b/webrtc/modules/video_coding/packet_buffer.h
index ae0916a75f3bfb4f099f2ea730dbc6d0bd2379a2..ec187de086506c7056373b31fd2184d63dddddfb 100644
--- a/webrtc/modules/video_coding/packet_buffer.h
+++ b/webrtc/modules/video_coding/packet_buffer.h
@@ -21,6 +21,9 @@
#include "webrtc/modules/video_coding/sequence_number_util.h"
namespace webrtc {
+
+class Clock;
+
namespace video_coding {
class FrameObject;
@@ -35,7 +38,8 @@ class OnCompleteFrameCallback {
class PacketBuffer {
public:
// Both |start_buffer_size| and |max_buffer_size| must be a power of 2.
- PacketBuffer(size_t start_buffer_size,
+ PacketBuffer(Clock* clock,
+ size_t start_buffer_size,
size_t max_buffer_size,
OnCompleteFrameCallback* frame_callback);
@@ -68,6 +72,8 @@ class PacketBuffer {
bool frame_created = false;
};
+ Clock* const clock_;
+
// Tries to expand the buffer.
bool ExpandBufferSize() EXCLUSIVE_LOCKS_REQUIRED(crit_);
« no previous file with comments | « webrtc/modules/video_coding/frame_object.cc ('k') | webrtc/modules/video_coding/packet_buffer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698