Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(164)

Unified Diff: include/effects/SkColorCubeFilter.h

Issue 1894893002: Modernize and trim down SkOnce. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: might as well class Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | include/gpu/GrResourceKey.h » ('j') | include/private/SkOnce.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
};
« no previous file with comments | « no previous file | include/gpu/GrResourceKey.h » ('j') | include/private/SkOnce.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698