Bug 1765399 - Rename mRefreshTimerNeedsVsync and NotifyRefreshTimerVsyncStatus. r=smaug

Differential Revision: https://phabricator.services.mozilla.com/D144364
This commit is contained in:
Markus Stange 2022-05-04 16:13:34 +00:00
parent 070677f86a
commit 838ffad4a6
5 changed files with 9 additions and 9 deletions

View File

@ -5829,7 +5829,7 @@ _ZN5style7sharing17SHARING_CACHE_KEY7__getit17he592e433f2be153cE
?GetRootPresContext@nsPresContext@@QBEPAVnsRootPresContext@@XZ
?AddChildRefreshTimer@VsyncDispatcher@mozilla@@QAEXPAVVsyncObserver@2@@Z
??1VsyncDispatcher@mozilla@@EAE@XZ
?NotifyRefreshTimerVsyncStatus@Display@VsyncSource@gfx@mozilla@@QAEX_N@Z
?NotifyVsyncDispatcherVsyncStatus@Display@VsyncSource@gfx@mozilla@@QAEX_N@Z
?GetVsyncRate@D3DVsyncDisplay@D3DVsyncSource@@UAE?AV?$BaseTimeDuration@VTimeDurationValueCalculator@mozilla@@@mozilla@@XZ
?PostTask@MessageLoop@@QAEXU?$already_AddRefed@VnsIRunnable@@@@@Z
?_Growmap@?$deque@UPendingTask@MessageLoop@@V?$allocator@UPendingTask@MessageLoop@@@std@@@std@@IAEXI@Z

View File

@ -4001,7 +4001,7 @@ ZN5style7stylist7Stylist17append_stylesheet17he70cadcba5340a98E
?GetRootPresContext@nsPresContext@@QEBAPEAVnsRootPresContext@@XZ
?AddChildRefreshTimer@VsyncDispatcher@mozilla@@QEAAXPEAVVsyncObserver@2@@Z
?NotifyVsync@VsyncDispatcher@mozilla@@QEAAXAEBUVsyncEvent@2@@Z
?NotifyRefreshTimerVsyncStatus@Display@VsyncSource@gfx@mozilla@@QEAAX_N@Z
?NotifyVsyncDispatcherVsyncStatus@Display@VsyncSource@gfx@mozilla@@QEAAX_N@Z
?GetVsyncRate@D3DVsyncDisplay@D3DVsyncSource@@UEAA?AV?$BaseTimeDuration@VTimeDurationValueCalculator@mozilla@@@mozilla@@XZ
?PostTask@MessageLoop@@QEAAXU?$already_AddRefed@VnsIRunnable@@@@@Z
??$_Insert_nohint@AEAU?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@PEAU?$_Tree_node@U?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@PEAX@2@@?$_Tree@V?$_Tmap_traits@HV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@U?$less@H@2@V?$allocator@U?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@@2@$0A@@std@@@std@@IEAA?AU?$pair@V?$_Tree_iterator@V?$_Tree_val@U?$_Tree_simple_types@U?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@@std@@@std@@@std@@_N@1@_NAEAU?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@1@PEAU?$_Tree_node@U?$pair@$$CBHV?$basic_string@DU?$char_traits@D@std@@V?$allocator@D@2@@std@@@std@@PEAX@1@@Z

View File

@ -19,7 +19,7 @@ namespace gfx {
VsyncSource::VsyncSource()
: mDispatcherLock("display dispatcher lock"),
mRefreshTimerNeedsVsync(false),
mVsyncDispatcherNeedsVsync(false),
mHasGenericObservers(false) {
MOZ_ASSERT(NS_IsMainThread());
mVsyncDispatcher = new VsyncDispatcher(this);
@ -177,9 +177,9 @@ void VsyncSource::MoveListenersToNewSource(
mVsyncDispatcher = nullptr;
}
void VsyncSource::NotifyRefreshTimerVsyncStatus(bool aEnable) {
void VsyncSource::NotifyVsyncDispatcherVsyncStatus(bool aEnable) {
MOZ_ASSERT(NS_IsMainThread());
mRefreshTimerNeedsVsync = aEnable;
mVsyncDispatcherNeedsVsync = aEnable;
UpdateVsyncStatus();
}
@ -194,7 +194,7 @@ void VsyncSource::UpdateVsyncStatus() {
{ // scope lock
MutexAutoLock lock(mDispatcherLock);
enableVsync = !mEnabledCompositorVsyncDispatchers.IsEmpty() ||
mRefreshTimerNeedsVsync || !mGenericObservers.IsEmpty();
mVsyncDispatcherNeedsVsync || !mGenericObservers.IsEmpty();
mHasGenericObservers = !mGenericObservers.IsEmpty();
}

View File

@ -64,7 +64,7 @@ class VsyncSource {
void DeregisterCompositorVsyncDispatcher(
CompositorVsyncDispatcher* aCompositorVsyncDispatcher);
void NotifyRefreshTimerVsyncStatus(bool aEnable);
void NotifyVsyncDispatcherVsyncStatus(bool aEnable);
virtual TimeDuration GetVsyncRate();
// These should all only be called on the main thread
@ -95,7 +95,7 @@ class VsyncSource {
void UpdateVsyncStatus();
Mutex mDispatcherLock MOZ_UNANNOTATED;
bool mRefreshTimerNeedsVsync;
bool mVsyncDispatcherNeedsVsync;
nsTArray<RefPtr<CompositorVsyncDispatcher>>
mEnabledCompositorVsyncDispatchers;
nsTArray<RefPtr<CompositorVsyncDispatcher>>

View File

@ -165,7 +165,7 @@ void VsyncDispatcher::UpdateVsyncStatus() {
return;
}
mVsyncSource->NotifyRefreshTimerVsyncStatus(NeedsVsync());
mVsyncSource->NotifyVsyncDispatcherVsyncStatus(NeedsVsync());
}
bool VsyncDispatcher::NeedsVsync() {