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

Unified Diff: remoting/codec/webrtc_video_encoder_vpx.cc

Issue 2398293002: Small fixes for WevRTC protocol in host (Closed)
Patch Set: Created 4 years, 2 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 | remoting/protocol/webrtc_transport.cc » ('j') | remoting/protocol/webrtc_transport.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/webrtc_video_encoder_vpx.cc
diff --git a/remoting/codec/webrtc_video_encoder_vpx.cc b/remoting/codec/webrtc_video_encoder_vpx.cc
index 5307263f60cbd7915d1b23577a2ce597143f6d71..dfa6050d79c5d504868ccd350cc587fd4b8c73ab 100644
--- a/remoting/codec/webrtc_video_encoder_vpx.cc
+++ b/remoting/codec/webrtc_video_encoder_vpx.cc
@@ -300,6 +300,10 @@ std::unique_ptr<WebrtcVideoEncoder::EncodedFrame> WebrtcVideoEncoderVpx::Encode(
// Update active map based on updated region.
if (params.clear_active_map)
ClearActiveMap();
+
+ if (params.key_frame)
+ updated_region.SetRect(webrtc::DesktopRect::MakeSize(frame.size()));
+
SetActiveMapFromRegion(updated_region);
// Apply active map to the encoder.
« no previous file with comments | « no previous file | remoting/protocol/webrtc_transport.cc » ('j') | remoting/protocol/webrtc_transport.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698