diff options
author | Moonchild <moonchild@palemoon.org> | 2022-02-04 01:44:41 +0000 |
---|---|---|
committer | Moonchild <moonchild@palemoon.org> | 2022-02-04 01:44:41 +0000 |
commit | d4c86a8319cc469bfb7036a2ecb439b35be1a833 (patch) | |
tree | 68692b1038e23177b526f8ef496a4506a197054e /system/graphics | |
parent | 097fa969802f76530384926e8ef1f56777be3783 (diff) | |
download | aura-central-d4c86a8319cc469bfb7036a2ecb439b35be1a833.tar.gz |
Issue %3060 - Resolve remaining RELEASE_OR_BETA conditionals.
Diffstat (limited to 'system/graphics')
-rw-r--r-- | system/graphics/thebes/gfxFont-Impl.h | 11 | ||||
-rw-r--r-- | system/graphics/thebes/gfxFont.cpp | 6 | ||||
-rw-r--r-- | system/graphics/thebes/gfxPrefs.h | 7 | ||||
-rw-r--r-- | system/graphics/thebes/gfxTextRun.cpp | 8 |
4 files changed, 9 insertions, 23 deletions
diff --git a/system/graphics/thebes/gfxFont-Impl.h b/system/graphics/thebes/gfxFont-Impl.h index 2661d1f40..6b31cf29f 100644 --- a/system/graphics/thebes/gfxFont-Impl.h +++ b/system/graphics/thebes/gfxFont-Impl.h @@ -50,20 +50,9 @@ gfxFont::GetShapedWord(DrawTarget *aDrawTarget, if (sw) {
sw->ResetAge();
-#ifndef RELEASE_OR_BETA
- if (aTextPerf) {
- aTextPerf->current.wordCacheHit++;
- }
-#endif
return sw;
}
-#ifndef RELEASE_OR_BETA
- if (aTextPerf) {
- aTextPerf->current.wordCacheMiss++;
- }
-#endif
-
sw = gfxShapedWord::Create(aText, aLength, aRunScript, aAppUnitsPerDevUnit,
aFlags);
entry->mShapedWord.reset(sw);
diff --git a/system/graphics/thebes/gfxFont.cpp b/system/graphics/thebes/gfxFont.cpp index dba322521..9acfdeb95 100644 --- a/system/graphics/thebes/gfxFont.cpp +++ b/system/graphics/thebes/gfxFont.cpp @@ -180,7 +180,7 @@ gfxFontCache::gfxFontCache() obs->AddObserver(new Observer, "memory-pressure", false); } -#ifndef RELEASE_OR_BETA +#if 0 // Currently disabled for release builds, due to unexplained crashes // during expiration; see bug 717175 & 894798. mWordCacheExpirationTimer = do_CreateInstance("@mozilla.org/timer;1"); @@ -2786,7 +2786,7 @@ gfxFont::ShapeTextWithoutWordCache(DrawTarget *aDrawTarget, return ok; } -#ifndef RELEASE_OR_BETA +#ifdef DEBUG #define TEXT_PERF_INCR(tp, m) (tp ? (tp)->current.m++ : 0) #else #define TEXT_PERF_INCR(tp, m) @@ -2826,7 +2826,7 @@ gfxFont::SplitAndInitTextRun(DrawTarget *aDrawTarget, gfxTextPerfMetrics *tp = nullptr; -#ifndef RELEASE_OR_BETA +#ifdef DEBUG tp = aTextRun->GetFontGroup()->GetTextPerfMetrics(); if (tp) { if (mStyle.systemFont) { diff --git a/system/graphics/thebes/gfxPrefs.h b/system/graphics/thebes/gfxPrefs.h index 143d9199c..b02638e5a 100644 --- a/system/graphics/thebes/gfxPrefs.h +++ b/system/graphics/thebes/gfxPrefs.h @@ -352,12 +352,9 @@ private: #if defined(ANDROID) DECL_GFX_PREF(Once, "gfx.apitrace.enabled", UseApitrace, bool, false); #endif -#if defined(RELEASE_OR_BETA) - // "Skip" means this is locked to the default value in beta and release. - DECL_GFX_PREF(Skip, "gfx.blocklist.all", BlocklistAll, int32_t, 0); -#else + // Tweaking/debug pref: -1 = ignore active blocklist entry, 0 = normal, 1 = block all features DECL_GFX_PREF(Once, "gfx.blocklist.all", BlocklistAll, int32_t, 0); -#endif + DECL_GFX_PREF(Live, "gfx.canvas.auto_accelerate.min_calls", CanvasAutoAccelerateMinCalls, int32_t, 4); DECL_GFX_PREF(Live, "gfx.canvas.auto_accelerate.min_frames", CanvasAutoAccelerateMinFrames, int32_t, 30); DECL_GFX_PREF(Live, "gfx.canvas.auto_accelerate.min_seconds", CanvasAutoAccelerateMinSeconds, float, 5.0f); diff --git a/system/graphics/thebes/gfxTextRun.cpp b/system/graphics/thebes/gfxTextRun.cpp index 664514fdd..ae746b8c5 100644 --- a/system/graphics/thebes/gfxTextRun.cpp +++ b/system/graphics/thebes/gfxTextRun.cpp @@ -158,7 +158,7 @@ gfxTextRun::gfxTextRun(const gfxTextRunFactory::Parameters *aParams, MOZ_COUNT_CTOR(gfxTextRun); NS_ADDREF(mFontGroup); -#ifndef RELEASE_OR_BETA +#ifdef DEBUG gfxTextPerfMetrics *tp = aFontGroup->GetTextPerfMetrics(); if (tp) { tp->current.textrunConst++; @@ -192,7 +192,7 @@ gfxTextRun::~gfxTextRun() // been told to release its reference to the group, so we mustn't do that // again here. if (!mReleasedFontGroup) { -#ifndef RELEASE_OR_BETA +#ifdef DEBUG gfxTextPerfMetrics *tp = mFontGroup->GetTextPerfMetrics(); if (tp) { tp->current.textrunDestr++; @@ -2931,7 +2931,7 @@ void gfxFontGroup::ComputeRanges(nsTArray<gfxTextRange>& aRanges, FindFontForChar(ch, prevCh, nextCh, aRunScript, prevFont, &matchType); -#ifndef RELEASE_OR_BETA +#ifdef DEBUG if (MOZ_UNLIKELY(mTextPerf)) { if (matchType == gfxTextRange::kPrefsFallback) { mTextPerf->current.fallbackPrefs++; @@ -2990,7 +2990,7 @@ void gfxFontGroup::ComputeRanges(nsTArray<gfxTextRange>& aRanges, aRanges[lastRangeIndex].end = aLength; -#ifndef RELEASE_OR_BETA +#ifdef DEBUG LogModule* log = mStyle.systemFont ? gfxPlatform::GetLog(eGfxLog_textrunui) : gfxPlatform::GetLog(eGfxLog_textrun); |