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

Unified Diff: remoting/protocol/webrtc_video_capturer_adapter.cc

Issue 1740443002: Fix WebrtcVideoCapturerAdapter to emit frames even when nothing is changing. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_capturer_adapter.cc
diff --git a/remoting/protocol/webrtc_video_capturer_adapter.cc b/remoting/protocol/webrtc_video_capturer_adapter.cc
index 96c2c3af891e62d8b95a3d18218d3e7920be48ec..338101113bf66c3c662fcf2273ec24d92968b135 100644
--- a/remoting/protocol/webrtc_video_capturer_adapter.cc
+++ b/remoting/protocol/webrtc_video_capturer_adapter.cc
@@ -161,12 +161,11 @@ void WebrtcVideoCapturerAdapter::OnCaptureCompleted(
DCHECK(capture_pending_);
capture_pending_ = false;
- scoped_ptr<webrtc::DesktopFrame> owned_frame(frame);
-
- // Drop the frame if there were no changes.
- if (!owned_frame || owned_frame->updated_region().is_empty())
+ if (!frame)
Jamie 2016/02/24 23:31:38 If this is a stop-gap solution, does it warrant a
Sergey Ulanov 2016/02/25 00:50:15 Done.
return;
+ scoped_ptr<webrtc::DesktopFrame> owned_frame(frame);
+
size_t width = frame->size().width();
size_t height = frame->size().height();
if (!yuv_frame_ || yuv_frame_->GetWidth() != width ||
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698