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

Unified Diff: src/utils/SkMatrix44.cpp

Issue 146823002: Use SkMScalar as intermediates in SkMatrix44::setConcat. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: try without a flag Created 6 years, 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/utils/SkMatrix44.cpp
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp
index a7133ec1a75fb9d8c82fae09aa31197b250e7b12..f4b6aa48040859b84bc39b71b977c443c6684f4a 100644
--- a/src/utils/SkMatrix44.cpp
+++ b/src/utils/SkMatrix44.cpp
@@ -383,11 +383,11 @@ void SkMatrix44::setConcat(const SkMatrix44& a, const SkMatrix44& b) {
} else {
for (int j = 0; j < 4; j++) {
for (int i = 0; i < 4; i++) {
- double value = 0;
+ SkMScalar value = 0;
for (int k = 0; k < 4; k++) {
- value += SkMScalarToDouble(a.fMat[k][i]) * b.fMat[j][k];
+ value += a.fMat[k][i] * b.fMat[j][k];
}
- *result++ = SkDoubleToMScalar(value);
+ *result++ = value;
}
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698