mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 22:32:46 +00:00
Bug 1765399 - Rename mRefreshTimerNeedsVsync and NotifyRefreshTimerVsyncStatus. r=smaug
Differential Revision: https://phabricator.services.mozilla.com/D144364
This commit is contained in:
parent
070677f86a
commit
838ffad4a6
@ -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
|
||||
|
@ -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
|
||||
|
@ -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();
|
||||
}
|
||||
|
||||
|
@ -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>>
|
||||
|
@ -165,7 +165,7 @@ void VsyncDispatcher::UpdateVsyncStatus() {
|
||||
return;
|
||||
}
|
||||
|
||||
mVsyncSource->NotifyRefreshTimerVsyncStatus(NeedsVsync());
|
||||
mVsyncSource->NotifyVsyncDispatcherVsyncStatus(NeedsVsync());
|
||||
}
|
||||
|
||||
bool VsyncDispatcher::NeedsVsync() {
|
||||
|
Loading…
Reference in New Issue
Block a user