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

Unified Diff: remoting/protocol/webrtc_video_capturer_adapter.cc

Issue 1844143002: Add VideoLayout message. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « remoting/protocol/webrtc_video_capturer_adapter.h ('k') | remoting/test/protocol_perftest.cc » ('j') | 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 0511a8fd390b5e2bfd8decda2516f77eef982036..d7369a407b349adee11c14558a14d9a7dd6252bd 100644
--- a/remoting/protocol/webrtc_video_capturer_adapter.cc
+++ b/remoting/protocol/webrtc_video_capturer_adapter.cc
@@ -30,7 +30,7 @@ WebrtcVideoCapturerAdapter::~WebrtcVideoCapturerAdapter() {
}
void WebrtcVideoCapturerAdapter::SetSizeCallback(
- const SizeCallback& size_callback) {
+ const VideoStream::SizeCallback& size_callback) {
DCHECK(thread_checker_.CalledOnValidThread());
size_callback_ = size_callback;
}
@@ -169,7 +169,7 @@ void WebrtcVideoCapturerAdapter::OnCaptureCompleted(
if (!yuv_frame_ || yuv_frame_->GetWidth() != width ||
yuv_frame_->GetHeight() != height) {
if (!size_callback_.is_null())
- size_callback_.Run(frame->size());
+ size_callback_.Run(frame->size(), frame->dpi());
scoped_ptr<cricket::WebRtcVideoFrame> webrtc_frame(
new cricket::WebRtcVideoFrame());
« no previous file with comments | « remoting/protocol/webrtc_video_capturer_adapter.h ('k') | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698