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

Unified Diff: remoting/codec/video_decoder_vpx.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.h ('k') | remoting/codec/video_encoder_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/codec/video_decoder_vpx.cc
diff --git a/remoting/codec/video_decoder_vpx.cc b/remoting/codec/video_decoder_vpx.cc
index b784a9eff79514e16ac57c90a2ca61501c5c611a..b0761289dde8e6c0c89a71b1623b73b0f3394627 100644
--- a/remoting/codec/video_decoder_vpx.cc
+++ b/remoting/codec/video_decoder_vpx.cc
@@ -117,26 +117,6 @@ bool VideoDecoderVpx::DecodePacket(const VideoPacket& packet,
RenderRect(image, rect, frame);
}
- // Process the frame shape, if supplied.
- if (packet.has_use_desktop_shape()) {
- if (packet.use_desktop_shape()) {
- if (!desktop_shape_)
- desktop_shape_ = make_scoped_ptr(new webrtc::DesktopRegion);
- desktop_shape_->Clear();
- for (int i = 0; i < packet.desktop_shape_rects_size(); ++i) {
- Rect proto_rect = packet.desktop_shape_rects(i);
- desktop_shape_->AddRect(webrtc::DesktopRect::MakeXYWH(
- proto_rect.x(), proto_rect.y(), proto_rect.width(),
- proto_rect.height()));
- }
- } else {
- desktop_shape_.reset();
- }
- }
-
- if (desktop_shape_)
- frame->set_shape(new webrtc::DesktopRegion(*desktop_shape_));
-
return true;
}
« no previous file with comments | « remoting/codec/video_decoder_vpx.h ('k') | remoting/codec/video_encoder_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698