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

Unified Diff: remoting/base/util.h

Issue 8985007: Refactoring of the client-side input pipeline and scaling dimension management. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 9 years 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
Index: remoting/base/util.h
diff --git a/remoting/base/util.h b/remoting/base/util.h
index cf2b2dd83d69c7c33ace6eb4558c4a59441899a8..8bed6f47b4d5ffac838a3082665a345600f306bd 100644
--- a/remoting/base/util.h
+++ b/remoting/base/util.h
@@ -54,12 +54,12 @@ int RoundToTwosMultiple(int x);
// Align the sides of the rectangle to multiples of 2 (expanding outwards).
SkIRect AlignRect(const SkIRect& rect);
-// Scale a rectangle by horizontal and vertical factors. If the result has
-// non-integer coordinates then the smallest integer-coordinate rectangle that
-// wholly encloses it is returned.
+// Scales the supplied rectangle from |in_size| coordinates to |out_size|.
+// If the result has non-integer coordinates then the smallest integer-
+// coordinate rectangle that wholly encloses it is returned.
SkIRect ScaleRect(const SkIRect& rect,
- double horizontal_ratio,
- double vertical_ratio);
+ const SkISize& in_size,
+ const SkISize& out_size);
// Copy pixels in the rectangle from source to destination.
void CopyRect(const uint8* src_plane,

Powered by Google App Engine
This is Rietveld 408576698