Index: src/pdf/SkPDFGraphicState.cpp |
diff --git a/src/pdf/SkPDFGraphicState.cpp b/src/pdf/SkPDFGraphicState.cpp |
index 9f8edfd2061bf593420e57e0090bbb37d83a81e8..c26e4b7708f538da4e1e600729c1836ecc07d648 100644 |
--- a/src/pdf/SkPDFGraphicState.cpp |
+++ b/src/pdf/SkPDFGraphicState.cpp |
@@ -114,6 +114,7 @@ SkPDFGraphicState* SkPDFGraphicState::GetGraphicStateForPaint( |
// static |
SkPDFObject* SkPDFGraphicState::GetInvertFunction() { |
// This assumes that canonicalPaintsMutex is held. |
+ CanonicalPaintsMutex().assertHeld(); |
static SkPDFStream* invertFunction = NULL; |
if (!invertFunction) { |
// Acrobat crashes if we use a type 0 function, kpdf crashes if we use |