Index: include/core/SkColorTable.h |
diff --git a/include/core/SkColorTable.h b/include/core/SkColorTable.h |
index ccea7ed550bf05b64fd05f0cfc38bc077c6ba4e1..39553badfc4a70efd56c3551b6a08d422e444cf5 100644 |
--- a/include/core/SkColorTable.h |
+++ b/include/core/SkColorTable.h |
@@ -10,7 +10,7 @@ |
#ifndef SkColorTable_DEFINED |
#define SkColorTable_DEFINED |
-#include "../private/SkOncePtr.h" |
+#include "../private/SkOnce.h" |
#include "SkColor.h" |
#include "SkFlattenable.h" |
#include "SkImageInfo.h" |
@@ -62,7 +62,8 @@ private: |
SkColorTable(SkPMColor* colors, int count, AllocatedWithMalloc); |
SkPMColor* fColors; |
- SkOncePtr<uint16_t[]> f16BitCache; |
+ mutable uint16_t* f16BitCache = nullptr; |
+ mutable SkOnce f16BitCacheOnce; |
int fCount; |
void init(const SkPMColor* colors, int count); |