Index: include/effects/SkColorCubeFilter.h |
diff --git a/include/effects/SkColorCubeFilter.h b/include/effects/SkColorCubeFilter.h |
index 8b621292b03bdba9eb1bead4e21ab25122ee392c..10e370a3af6ff1749b387e9dc33d5506f6fb349b 100644 |
--- a/include/effects/SkColorCubeFilter.h |
+++ b/include/effects/SkColorCubeFilter.h |
@@ -10,7 +10,7 @@ |
#include "SkColorFilter.h" |
#include "SkData.h" |
-#include "../private/SkMutex.h" |
+#include "../private/SkOnce.h" |
#include "../private/SkTemplates.h" |
class SK_API SkColorCubeFilter : public SkColorFilter { |
@@ -65,8 +65,7 @@ private: |
const int fCubeDimension; |
// Make sure we only initialize the caches once. |
- SkMutex fLutsMutex; |
- bool fLutsInited; |
+ SkOnce fLutsInitOnce; |
static void initProcessingLuts(ColorCubeProcesingCache* cache); |
}; |