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

Unified Diff: remoting/codec/video_encoder_helper.cc

Issue 1827043004: Remove shaped desktop support from remoting host and client. (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/codec/video_decoder_vpx.cc ('k') | remoting/codec/video_encoder_helper_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_encoder_helper.cc
diff --git a/remoting/codec/video_encoder_helper.cc b/remoting/codec/video_encoder_helper.cc
index b8e8d1ee93ae294ef0b04649dbbc9a20da50adc7..d07916220a0e2d515eb507edfb2b43268fba5bb2 100644
--- a/remoting/codec/video_encoder_helper.cc
+++ b/remoting/codec/video_encoder_helper.cc
@@ -44,19 +44,6 @@ VideoEncoderHelper::CreateVideoPacketWithUpdatedRegion(
dirty_rect->set_height(rect.height());
}
- // Record the shape of the frame, if specified.
- if (frame.shape()) {
- packet->set_use_desktop_shape(true);
- for (webrtc::DesktopRegion::Iterator r(*frame.shape());
- !r.IsAtEnd(); r.Advance()) {
- Rect* rect = packet->add_desktop_shape_rects();
- rect->set_x(r.rect().left());
- rect->set_y(r.rect().top());
- rect->set_width(r.rect().width());
- rect->set_height(r.rect().height());
- }
- }
-
// Store frame DPI.
if (!frame.dpi().is_zero()) {
packet->mutable_format()->set_x_dpi(frame.dpi().x());
« no previous file with comments | « remoting/codec/video_decoder_vpx.cc ('k') | remoting/codec/video_encoder_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698