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

Unified Diff: src/core/SkMatrix.cpp

Issue 117973002: move SkScalarMean into its only caller, reducing out public API exposure (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 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
« no previous file with comments | « include/core/SkScalar.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkMatrix.cpp
diff --git a/src/core/SkMatrix.cpp b/src/core/SkMatrix.cpp
index 4493fababb3c11db23daf11de255e1010f959b5d..2c850b3fb94a708592181710a057d923730321e0 100644
--- a/src/core/SkMatrix.cpp
+++ b/src/core/SkMatrix.cpp
@@ -1177,7 +1177,8 @@ SkScalar SkMatrix::mapRadius(SkScalar radius) const {
SkScalar d0 = vec[0].length();
SkScalar d1 = vec[1].length();
- return SkScalarMean(d0, d1);
+ // return geometric mean
+ return SkScalarSqrt(d0 * d1);
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « include/core/SkScalar.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698