Index: src/effects/gradients/SkGradientShaderPriv.h |
diff --git a/src/effects/gradients/SkGradientShaderPriv.h b/src/effects/gradients/SkGradientShaderPriv.h |
index 881f1eb836d5d8622c691892d19aa66fc6accf6e..0677cf0fd361913bc8501d0d9aef249b199941f2 100644 |
--- a/src/effects/gradients/SkGradientShaderPriv.h |
+++ b/src/effects/gradients/SkGradientShaderPriv.h |
@@ -142,8 +142,8 @@ public: |
const SkGradientShaderBase& fShader; |
// Make sure we only initialize the caches once. |
- bool fCache16Inited, fCache32Inited; |
- SkMutex fCache16Mutex, fCache32Mutex; |
+ SkOnce fCache16InitOnce, |
+ fCache32InitOnce; |
static void initCache16(GradientShaderCache* cache); |
static void initCache32(GradientShaderCache* cache); |