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

Unified Diff: webrtc/media/devices/gdivideorenderer.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: Use objc dot syntax. Delete chromaSize property. 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
Index: webrtc/media/devices/gdivideorenderer.cc
diff --git a/webrtc/media/devices/gdivideorenderer.cc b/webrtc/media/devices/gdivideorenderer.cc
index f9472e5a6ed1399739a916558baf50039ec7cc39..3d6f2cb0fc99278f0e390dba8efccef23fad1481 100644
--- a/webrtc/media/devices/gdivideorenderer.cc
+++ b/webrtc/media/devices/gdivideorenderer.cc
@@ -137,8 +137,7 @@ void GdiVideoRenderer::VideoWindow::OnFrame(const VideoFrame& video_frame) {
const VideoFrame* frame = video_frame.GetCopyWithRotationApplied();
- if (SetSize(static_cast<int>(frame->GetWidth()),
- static_cast<int>(frame->GetHeight()))) {
+ if (SetSize(frame->width(), frame->height())) {
SendMessage(handle(), kRenderFrameMsg, reinterpret_cast<WPARAM>(frame), 0);
}
}
@@ -245,8 +244,7 @@ GdiVideoRenderer::~GdiVideoRenderer() {}
void GdiVideoRenderer::OnFrame(const VideoFrame& frame) {
if (!window_.get()) { // Create the window for the first frame
window_.reset(new VideoWindow(initial_x_, initial_y_,
- static_cast<int>(frame.GetWidth()),
- static_cast<int>(frame.GetHeight())));
+ frame.width(), frame.height()));
pbos-webrtc 2016/03/31 14:49:09 git cl format I think?
}
window_->OnFrame(frame);
}

Powered by Google App Engine
This is Rietveld 408576698