Index: webrtc/media/base/videoframe.h |
diff --git a/webrtc/media/base/videoframe.h b/webrtc/media/base/videoframe.h |
index bd7393463b78164595f506eaa3a3f9a934eafd0a..156da25112af7810d265e67676ec5a7fda125dc8 100644 |
--- a/webrtc/media/base/videoframe.h |
+++ b/webrtc/media/base/videoframe.h |
@@ -45,6 +45,13 @@ |
virtual int64_t timestamp_us() const = 0; |
virtual void set_timestamp_us(int64_t time_us) = 0; |
+ // Deprecated methods, for backwards compatibility. |
+ // TODO(nisse): Delete when usage in Chrome and other applications |
+ // have been replaced. |
+ virtual int64_t GetTimeStamp() const { |
+ return rtc::kNumNanosecsPerMicrosec * timestamp_us(); |
+ } |
+ |
// Indicates the rotation angle in degrees. |
virtual webrtc::VideoRotation rotation() const = 0; |