Searched refs:mExternalRefsHolder (Results 1 – 3 of 3) sorted by relevance
/frameworks/minikin/libs/minikin/ |
D | Font.cpp | 79 : mExternalRefsHolder(nullptr), in Font() 99 : mExternalRefsHolder(nullptr), mTypefaceMetadataReader(nullptr) { in Font() 115 mExternalRefsHolder.exchange(new ExternalRefs(std::move(typeface), std::move(hbFont))); in Font() 140 mExternalRefsHolder.store(o.mExternalRefsHolder.exchange(nullptr)); in Font() 144 resetExternalRefs(o.mExternalRefsHolder.exchange(nullptr)); in operator =() 166 ExternalRefs* oldRefs = mExternalRefsHolder.exchange(refs); in resetExternalRefs() 187 Font::ExternalRefs* externalRefs = mExternalRefsHolder.load(); in getExternalRefs() 201 if (mExternalRefsHolder.compare_exchange_strong(expected, newExternalRefs)) { in getExternalRefs()
|
/frameworks/minikin/tests/unittest/ |
D | FontTest.cpp | 71 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST() 72 EXPECT_EQ(nullptr, moveTo.mExternalRefsHolder.load()); in TEST() 80 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST() 101 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST() 102 EXPECT_EQ(nullptr, moveTo.mExternalRefsHolder.load()); in TEST() 113 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST() 125 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST() 126 EXPECT_EQ(nullptr, moveTo.mExternalRefsHolder.load()); in TEST() 138 EXPECT_EQ(nullptr, moveFrom.mExternalRefsHolder.load()); in TEST()
|
/frameworks/minikin/include/minikin/ |
D | Font.h | 201 : mExternalRefsHolder(new ExternalRefs(std::move(typeface), std::move(baseFont))), in Font() 218 mutable std::atomic<ExternalRefs*> mExternalRefsHolder; variable
|