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

Unified Diff: webrtc/frame_callback.h

Issue 1569853002: Measure encoding time on encode callbacks. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: rebase Created 4 years, 11 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
Index: webrtc/frame_callback.h
diff --git a/webrtc/frame_callback.h b/webrtc/frame_callback.h
index b7f2210334d9870b0e7e64f7d0d61a7b8d3574e2..2bae25036d9aaa5da3d4845b9fd33103cab3ef15 100644
--- a/webrtc/frame_callback.h
+++ b/webrtc/frame_callback.h
@@ -12,6 +12,7 @@
#define WEBRTC_FRAME_CALLBACK_H_
#include <stddef.h>
+#include <stdint.h>
#include "webrtc/common_types.h"
@@ -43,6 +44,7 @@ class I420FrameCallback {
class EncodedFrameObserver {
public:
virtual void EncodedFrameCallback(const EncodedFrame& encoded_frame) = 0;
+ virtual void OnEncodeTiming(int64_t capture_ntp_ms, int encode_duration_ms) {}
protected:
virtual ~EncodedFrameObserver() {}

Powered by Google App Engine
This is Rietveld 408576698