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

Unified Diff: webrtc/media/base/videobroadcaster.cc

Issue 1838353004: cricket::VideoFrame cleanup. New width() and height(). Deleted GetChroma* methods. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: TODO comments. Formatting tweak. Created 4 years, 9 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/media/base/testutils.cc ('k') | webrtc/media/base/videoframe.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/media/base/videobroadcaster.cc
diff --git a/webrtc/media/base/videobroadcaster.cc b/webrtc/media/base/videobroadcaster.cc
index fd7134f12cc5ce3e8ef15774085ae11f4161b663..704f4081187ecc14320b78c06053a9513b947673 100644
--- a/webrtc/media/base/videobroadcaster.cc
+++ b/webrtc/media/base/videobroadcaster.cc
@@ -96,16 +96,15 @@ void VideoBroadcaster::UpdateWants() {
const cricket::VideoFrame& VideoBroadcaster::GetBlackFrame(
const cricket::VideoFrame& frame) {
- if (black_frame_ && black_frame_->GetWidth() == frame.GetWidth() &&
- black_frame_->GetHeight() == frame.GetHeight() &&
+ if (black_frame_ && black_frame_->width() == frame.width() &&
+ black_frame_->height() == frame.height() &&
black_frame_->GetVideoRotation() == frame.GetVideoRotation()) {
black_frame_->SetTimeStamp(frame.GetTimeStamp());
return *black_frame_;
}
black_frame_.reset(new cricket::WebRtcVideoFrame(
new rtc::RefCountedObject<webrtc::I420Buffer>(
- static_cast<int>(frame.GetWidth()),
- static_cast<int>(frame.GetHeight())),
+ frame.width(), frame.height()),
frame.GetTimeStamp(), frame.GetVideoRotation()));
black_frame_->SetToBlack();
return *black_frame_;
« no previous file with comments | « webrtc/media/base/testutils.cc ('k') | webrtc/media/base/videoframe.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698