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

Unified Diff: src/utils/SkMatrix44.cpp

Issue 147033002: Revert of Use SkMScalar as intermediates in SkMatrix44::setConcat. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: 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 f4b6aa48040859b84bc39b71b977c443c6684f4a..a7133ec1a75fb9d8c82fae09aa31197b250e7b12 100644
--- a/src/utils/SkMatrix44.cpp
+++ b/src/utils/SkMatrix44.cpp
@@ -383,11 +383,11 @@
} else {
for (int j = 0; j < 4; j++) {
for (int i = 0; i < 4; i++) {
- SkMScalar value = 0;
+ double value = 0;
for (int k = 0; k < 4; k++) {
- value += a.fMat[k][i] * b.fMat[j][k];
+ value += SkMScalarToDouble(a.fMat[k][i]) * b.fMat[j][k];
}
- *result++ = value;
+ *result++ = SkDoubleToMScalar(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