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

Unified Diff: webrtc/media/base/fakevideorenderer.h

Issue 2305623002: Delete cricket::VideoFrame::GetTimeStamp. (Closed)
Patch Set: Created 4 years, 3 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/media/base/fakevideorenderer.h
diff --git a/webrtc/media/base/fakevideorenderer.h b/webrtc/media/base/fakevideorenderer.h
index 9f03ea9d167ba8638673e7e371fb810e8817e532..6ebc1ae1415204b0f6dac022aa976e04aced925a 100644
--- a/webrtc/media/base/fakevideorenderer.h
+++ b/webrtc/media/base/fakevideorenderer.h
@@ -26,7 +26,7 @@ class FakeVideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
width_(0),
height_(0),
rotation_(webrtc::kVideoRotation_0),
- timestamp_(0),
+ timestamp_us_(0),
num_rendered_frames_(0),
black_frame_(false) {}
@@ -43,7 +43,7 @@ class FakeVideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
width_ = frame.width();
height_ = frame.height();
rotation_ = frame.rotation();
- timestamp_ = frame.GetTimeStamp();
+ timestamp_us_ = frame.timestamp_us();
SignalRenderFrame(&frame);
}
@@ -61,9 +61,9 @@ class FakeVideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
return rotation_;
}
- int64_t timestamp() const {
+ int64_t timestamp_us() const {
rtc::CritScope cs(&crit_);
- return timestamp_;
+ return timestamp_us_;
}
int num_rendered_frames() const {
rtc::CritScope cs(&crit_);
@@ -133,7 +133,7 @@ class FakeVideoRenderer : public rtc::VideoSinkInterface<cricket::VideoFrame> {
int width_;
int height_;
webrtc::VideoRotation rotation_;
- int64_t timestamp_;
+ int64_t timestamp_us_;
int num_rendered_frames_;
bool black_frame_;
rtc::CriticalSection crit_;

Powered by Google App Engine
This is Rietveld 408576698