Changeset 244707 in webkit


Ignore:
Timestamp:
Apr 26, 2019 3:05:01 PM (5 years ago)
Author:
Chris Dumez
Message:

[iOS] Our process assertion should not allow idle sleep
https://bugs.webkit.org/show_bug.cgi?id=197317
<rdar://problem/50137740>

Reviewed by Geoffrey Garen.

Our process assertion should not allow idle sleep. This is bad for power because the device
may switch between sleep and awake state frequently, as it get woken up by network packages.

  • UIProcess/ios/ProcessAssertionIOS.mm:
Location:
trunk/Source/WebKit
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r244704 r244707  
     12019-04-26  Chris Dumez  <cdumez@apple.com>
     2
     3        [iOS] Our process assertion should not allow idle sleep
     4        https://bugs.webkit.org/show_bug.cgi?id=197317
     5        <rdar://problem/50137740>
     6
     7        Reviewed by Geoffrey Garen.
     8
     9        Our process assertion should not allow idle sleep. This is bad for power because the device
     10        may switch between sleep and awake state frequently, as it get woken up by network packages.
     11
     12        * UIProcess/ios/ProcessAssertionIOS.mm:
     13
    1142019-04-26  Eric Carlson  <eric.carlson@apple.com>
    215
  • trunk/Source/WebKit/UIProcess/ios/ProcessAssertionIOS.mm

    r244091 r244707  
    131131
    132132const BKSProcessAssertionFlags suspendedTabFlags = (BKSProcessAssertionAllowIdleSleep);
    133 const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend);
    134 const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionAllowIdleSleep | BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
     133const BKSProcessAssertionFlags backgroundTabFlags = (BKSProcessAssertionPreventTaskSuspend);
     134const BKSProcessAssertionFlags foregroundTabFlags = (BKSProcessAssertionPreventTaskSuspend | BKSProcessAssertionWantsForegroundResourcePriority | BKSProcessAssertionPreventTaskThrottleDown);
    135135
    136136static BKSProcessAssertionFlags flagsForState(AssertionState assertionState)
Note: See TracChangeset for help on using the changeset viewer.