Changeset 286740 in webkit
- Timestamp:
- Dec 8, 2021, 2:08:04 PM (5 years ago)
- Location:
- branches/safari-612-branch/Source/WebKit/UIProcess
- Files:
-
- 2 edited
-
WebPageProxy.cpp (modified) (2 diffs)
-
WebPageProxy.h (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-612-branch/Source/WebKit/UIProcess/WebPageProxy.cpp
r286700 r286740 2900 2900 2901 2901 #if HAVE(CVDISPLAYLINK) 2902 void WebPageProxy::wheelEventHysteresisUpdated(PAL::HysteresisState state) 2902 void WebPageProxy::wheelEventHysteresisUpdated(PAL::HysteresisState) 2903 { 2904 updateDisplayLinkFrequency(); 2905 } 2906 2907 void WebPageProxy::updateDisplayLinkFrequency() 2903 2908 { 2904 2909 if (!m_process->hasConnection() || !m_displayID) 2905 2910 return; 2906 2911 2907 bool wantsFullSpeedUpdates = state == PAL::HysteresisState::Started; 2908 process().processPool().setDisplayLinkForDisplayWantsFullSpeedUpdates(*m_process->connection(), *m_displayID, wantsFullSpeedUpdates); 2912 bool wantsFullSpeedUpdates = m_wheelEventActivityHysteresis.state() == PAL::HysteresisState::Started; 2913 if (wantsFullSpeedUpdates != m_registeredForFullSpeedUpdates) { 2914 process().processPool().setDisplayLinkForDisplayWantsFullSpeedUpdates(*m_process->connection(), *m_displayID, wantsFullSpeedUpdates); 2915 m_registeredForFullSpeedUpdates = wantsFullSpeedUpdates; 2916 } 2909 2917 } 2910 2918 #endif … … 2913 2921 { 2914 2922 #if HAVE(CVDISPLAYLINK) 2915 if (m_wheelEventActivityHysteresis.state() == PAL::HysteresisState::Started) { 2916 if (!m_process->hasConnection() || !m_displayID) 2917 return; 2918 2919 bool wantsFullSpeedUpdates = true; 2920 process().processPool().setDisplayLinkForDisplayWantsFullSpeedUpdates(*m_process->connection(), *m_displayID, wantsFullSpeedUpdates); 2921 } 2923 updateDisplayLinkFrequency(); 2922 2924 #endif 2923 2925 } -
branches/safari-612-branch/Source/WebKit/UIProcess/WebPageProxy.h
r286739 r286740 2384 2384 #if HAVE(CVDISPLAYLINK) 2385 2385 void wheelEventHysteresisUpdated(PAL::HysteresisState); 2386 void updateDisplayLinkFrequency(); 2386 2387 #endif 2387 2388 void updateWheelEventActivityAfterProcessSwap(); … … 2753 2754 bool m_hasUpdatedRenderingAfterDidCommitLoad { true }; 2754 2755 2756 bool m_registeredForFullSpeedUpdates { false }; 2757 2755 2758 WebCore::ResourceRequest m_decidePolicyForResponseRequest; 2756 2759 bool m_shouldSuppressAppLinksInNextNavigationPolicyDecision { false };
Note:
See TracChangeset
for help on using the changeset viewer.