diff options
author | 2015-10-05 07:29:22 -0700 | |
---|---|---|
committer | 2015-10-05 07:29:22 -0700 | |
commit | 6f6264fbbc15d4184c81ca94949f2d4f3efdc2c8 (patch) | |
tree | 25cca69806cfca9411c35cc4f28a5086e0bf129d /src | |
parent | 98d2e2f095d9a5b784a32cfc2c34b30735dedcc3 (diff) |
Force cache SkTestScalerContext path bounds.
Looks like a race on this:
http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-ASAN/builds/2608/steps/dm/logs/stdio
BUG=skia:
Review URL: https://codereview.chromium.org/1373363007
Diffstat (limited to 'src')
-rw-r--r-- | src/fonts/SkTestScalerContext.cpp | 2 |
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; } } |