| 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;
|
| }
|
|
|
|
|