aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/utils
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-24 15:30:46 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2014-01-24 15:30:46 +0000
commit94ecb66c4920018c833d8bbbbb8b51d18e1c5d56 (patch)
tree7e41b97f5b398ac92cb54f6bc9584697f822db3a /src/utils
parent0903c3473c5d3f8b2344911b9f6384346236cf21 (diff)
Use SkMScalar as intermediates in SkMatrix44::setConcat.
BUG=skia: R=reed@google.com Author: mtklein@google.com Review URL: https://codereview.chromium.org/146823002 git-svn-id: http://skia.googlecode.com/svn/trunk@13167 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/utils')
-rw-r--r--src/utils/SkMatrix44.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/utils/SkMatrix44.cpp b/src/utils/SkMatrix44.cpp
index a7133ec1a7..f4b6aa4804 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;
}
}
}