aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorGravatar mtklein <mtklein@chromium.org>2015-10-05 07:29:22 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-10-05 07:29:22 -0700
commit6f6264fbbc15d4184c81ca94949f2d4f3efdc2c8 (patch)
tree25cca69806cfca9411c35cc4f28a5086e0bf129d /src
parent98d2e2f095d9a5b784a32cfc2c34b30735dedcc3 (diff)
Force cache SkTestScalerContext path bounds.
Diffstat (limited to 'src')
-rw-r--r--src/fonts/SkTestScalerContext.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/fonts/SkTestScalerContext.cpp b/src/fonts/SkTestScalerContext.cpp
index 368f26983c..7afe6521a3 100644
--- a/src/fonts/SkTestScalerContext.cpp
+++ b/src/fonts/SkTestScalerContext.cpp
@@ -108,6 +108,8 @@ void SkTestFont::init(const SkScalar* pts, const unsigned char* verbs) {
return;
}
}
+ // This should make SkPath::getBounds() queries threadsafe.
+ path->updateBoundsCache();
fPaths[index] = path;
}
}