Index: webrtc/media/base/fakevideorenderer.h |
diff --git a/webrtc/media/base/fakevideorenderer.h b/webrtc/media/base/fakevideorenderer.h |
index bc82cbaabff5cc48f9ca75cfb7be11d0ae884d02..0854d0ce391e79efb928d55809499aa287d8cc4e 100644 |
--- a/webrtc/media/base/fakevideorenderer.h |
+++ b/webrtc/media/base/fakevideorenderer.h |
@@ -43,6 +43,7 @@ class FakeVideoRenderer : public VideoRenderer { |
++num_rendered_frames_; |
width_ = static_cast<int>(frame->GetWidth()); |
height_ = static_cast<int>(frame->GetHeight()); |
+ rotation_ = frame->GetVideoRotation(); |
SignalRenderFrame(frame); |
return true; |
} |
@@ -56,6 +57,10 @@ class FakeVideoRenderer : public VideoRenderer { |
rtc::CritScope cs(&crit_); |
return height_; |
} |
+ int rotation() const { |
+ rtc::CritScope cs(&crit_); |
+ return rotation_; |
+ } |
int num_rendered_frames() const { |
rtc::CritScope cs(&crit_); |
return num_rendered_frames_; |
@@ -123,6 +128,7 @@ class FakeVideoRenderer : public VideoRenderer { |
int errors_; |
int width_; |
int height_; |
+ webrtc::VideoRotation rotation_; |
int num_rendered_frames_; |
bool black_frame_; |
rtc::CriticalSection crit_; |