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

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: Pick nits. 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
« no previous file with comments | « 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..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);
« no previous file with comments | « remoting/base/decoder_vp8.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698