Skip to content

Commit

Permalink
Bug 1852596 r=gfx-reviewers,aosmond, a=dmeehan
Browse files Browse the repository at this point in the history
  • Loading branch information
jfkthame committed Sep 27, 2023
1 parent 5bdd09f commit e02eb1f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 1 addition & 0 deletions gfx/thebes/gfxPlatformFontList.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1310,6 +1310,7 @@ class StartCmapLoadingRunnable : public mozilla::Runnable {
};

void gfxPlatformFontList::StartCmapLoadingFromFamily(uint32_t aStartIndex) {
AutoLock lock(mLock);
if (aStartIndex > mStartedLoadingCmapsFrom) {
// We already initiated cmap-loading from somewhere earlier in the list;
// no need to do it again here.
Expand Down
8 changes: 4 additions & 4 deletions gfx/thebes/gfxPlatformFontList.h
Original file line number Diff line number Diff line change
Expand Up @@ -1022,9 +1022,9 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
nsTHashtable<ShmemCharMapHashEntry> mShmemCharMaps MOZ_GUARDED_BY(mLock);

// data used as part of the font cmap loading process
nsTArray<RefPtr<gfxFontFamily>> mFontFamiliesToLoad;
uint32_t mStartIndex = 0;
uint32_t mNumFamilies = 0;
nsTArray<RefPtr<gfxFontFamily>> mFontFamiliesToLoad MOZ_GUARDED_BY(mLock);
uint32_t mStartIndex MOZ_GUARDED_BY(mLock) = 0;
uint32_t mNumFamilies MOZ_GUARDED_BY(mLock) = 0;

// xxx - info for diagnosing no default font aborts
// see bugs 636957, 1070983, 1189129
Expand Down Expand Up @@ -1055,7 +1055,7 @@ class gfxPlatformFontList : public gfxFontInfoLoader {
RefPtr<gfxFontEntry> mDefaultFontEntry MOZ_GUARDED_BY(mLock);

RefPtr<mozilla::CancelableRunnable> mLoadCmapsRunnable;
uint32_t mStartedLoadingCmapsFrom = 0xffffffffu;
uint32_t mStartedLoadingCmapsFrom MOZ_GUARDED_BY(mLock) = 0xffffffffu;

bool mFontFamilyWhitelistActive = false;

Expand Down

0 comments on commit e02eb1f

Please sign in to comment.