| Index: remoting/client/plugin/pepper_view.cc
|
| diff --git a/remoting/client/plugin/pepper_view.cc b/remoting/client/plugin/pepper_view.cc
|
| index 27ce1bc9762493097b2dbe9fbd83976da5b6dce6..7a293ab227693f1d7eed0234d0a8117ebc093c74 100644
|
| --- a/remoting/client/plugin/pepper_view.cc
|
| +++ b/remoting/client/plugin/pepper_view.cc
|
| @@ -127,19 +127,12 @@ void PepperView::SetConnectionState(protocol::ConnectionToHost::State state,
|
| }
|
| }
|
|
|
| -void PepperView::SetView(const SkISize& view_size,
|
| - const SkIRect& clip_area) {
|
| +void PepperView::SetView(const SkISize& view_size, const SkIRect& clip_area) {
|
| bool view_changed = false;
|
|
|
| - // TODO(alexeypa): Prevent upscaling because the YUV-to-RGB conversion code
|
| - // currently does not support upscaling. Once it does, this code be removed.
|
| - SkISize size = SkISize::Make(
|
| - std::min(view_size.width(), source_size_.width()),
|
| - std::min(view_size.height(), source_size_.height()));
|
| -
|
| - if (view_size_ != size) {
|
| + if (view_size_ != view_size) {
|
| view_changed = true;
|
| - view_size_ = size;
|
| + view_size_ = view_size;
|
|
|
| pp::Size pp_size = pp::Size(view_size_.width(), view_size_.height());
|
| graphics2d_ = pp::Graphics2D(instance_, pp_size, true);
|
|
|