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

Unified Diff: remoting/base/util.cc

Issue 9331003: Improving the decoder pipeline. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Integer ScaleRect 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') | remoting/client/chromoting_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/base/util.cc
diff --git a/remoting/base/util.cc b/remoting/base/util.cc
index 30691ea065531f9300883092de8dc55d5316b65b..26886cad268d6315c1980ff24dbc3bf0cf0d3e60 100644
--- a/remoting/base/util.cc
+++ b/remoting/base/util.cc
@@ -221,9 +221,9 @@ SkIRect ScaleRect(const SkIRect& rect,
const SkISize& out_size) {
int left = (rect.left() * out_size.width()) / in_size.width();
int top = (rect.top() * out_size.height()) / in_size.height();
- int right = (rect.right() * out_size.width() + out_size.width() - 1) /
+ int right = (rect.right() * out_size.width() + in_size.width() - 1) /
in_size.width();
- int bottom = (rect.bottom() * out_size.height() + out_size.height() - 1) /
+ int bottom = (rect.bottom() * out_size.height() + in_size.height() - 1) /
in_size.height();
return SkIRect::MakeLTRB(left, top, right, bottom);
}
« no previous file with comments | « remoting/base/decoder_vp8.cc ('k') | remoting/client/chromoting_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698