Skip to content

Commit 11d3f02

Browse files
committed
Revert "Ensures the global variable gICU is initialized only once via SkGetICULib, preventing multiple SkUnicode instances and potential issues in multi-threaded environments."
This reverts commit d1aa665.
1 parent 76daa70 commit 11d3f02

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/skunicode/src/SkUnicode_icu.cpp

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -47,11 +47,7 @@
4747
using namespace skia_private;
4848

4949
const SkICULib* SkGetICULib() {
50-
static std::unique_ptr<SkICULib> gICU;
51-
static SkOnce once;
52-
once([&] {
53-
gICU = SkLoadICULib();
54-
});
50+
static const auto gICU = SkLoadICULib();
5551
return gICU.get();
5652
}
5753

0 commit comments

Comments
 (0)