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

Unified Diff: remoting/client/plugin/pepper_view.cc

Issue 9583020: Disable rendering on up-scale. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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
« remoting/base/decoder_vp8.cc ('K') | « remoting/base/decoder_vp8.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« remoting/base/decoder_vp8.cc ('K') | « remoting/base/decoder_vp8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698