Index: src/core/SkShader.cpp |
diff --git a/src/core/SkShader.cpp b/src/core/SkShader.cpp |
index 816d6fd3298c0142cd9102d056961adcc11692cd..9c2fc2f100f143850376f030d95624b6eaab0dd8 100644 |
--- a/src/core/SkShader.cpp |
+++ b/src/core/SkShader.cpp |
@@ -44,6 +44,8 @@ SkShader::SkShader(const SkMatrix* localMatrix) { |
} else { |
fLocalMatrix.reset(); |
} |
+ // Pre-cache so future calls to fLocalMatrix.getType() are threadsafe. |
+ (void)fLocalMatrix.getType(); |
} |
SkShader::~SkShader() { |