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

Unified Diff: remoting/protocol/video_frame_pump.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/video_frame_pump.h ('k') | remoting/protocol/video_stream.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/video_frame_pump.cc
diff --git a/remoting/protocol/video_frame_pump.cc b/remoting/protocol/video_frame_pump.cc
index 0a6d963a0cf4ed24385bcda214811c2a3e10983e..072b2fd059eb7076802bd28a65e8833c6f1f92c8 100644
--- a/remoting/protocol/video_frame_pump.cc
+++ b/remoting/protocol/video_frame_pump.cc
@@ -122,10 +122,12 @@ void VideoFramePump::OnCaptureCompleted(webrtc::DesktopFrame* frame) {
captured_frame_timestamps_->capture_ended_time = base::TimeTicks::Now();
- if (frame && !frame_size_.equals(frame->size())) {
+ if (frame && (!frame_size_.equals(frame->size()) ||
+ !frame_dpi_.equals(frame->dpi()))) {
frame_size_ = frame->size();
+ frame_dpi_ = frame->dpi();
if (!size_callback_.is_null())
- size_callback_.Run(frame_size_);
+ size_callback_.Run(frame_size_, frame_dpi_);
}
// Even when |frame| is nullptr we still need to post it to the encode thread
« no previous file with comments | « remoting/protocol/video_frame_pump.h ('k') | remoting/protocol/video_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698