Chromium Code Reviews| 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..7efeeeb744753a24e8a3b417824da28916f665e1 100644 |
| --- a/remoting/client/plugin/pepper_view.cc |
| +++ b/remoting/client/plugin/pepper_view.cc |
| @@ -131,15 +131,9 @@ void PepperView::SetView(const SkISize& view_size, |
| const SkIRect& clip_area) { |
|
alexeypa (please no reviews)
2012/03/02 19:59:04
nit: I know you didn't write this but... :-) this
Wez
2012/03/02 22:15:31
Done.
|
| 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); |