Changeset 138336 in webkit
- Timestamp:
- Dec 20, 2012, 6:35:48 PM (13 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r138331 r138336 1 2012-12-20 Kiran Muppala <cmuppala@apple.com> 2 3 Set timer coalescing policy for WebKit2 processes on Mac until process visible assertion handles it automatically 4 https://bugs.webkit.org/show_bug.cgi?id=105594 5 6 Reviewed by Mark Rowe. 7 8 * Shared/mac/ChildProcessMac.mm: 9 (WebKit::initializeTimerCoalescingPolicy): Set task_latency and task_throughput QOS tiers as appropriate 10 for visible applications. 11 (WebKit::ChildProcess::platformInitialize): Add call to initializeTimerCoalescingPolicy. 12 1 13 2012-12-20 Anders Carlsson <andersca@apple.com> 2 14 -
trunk/Source/WebKit2/Shared/mac/ChildProcessMac.mm
r138226 r138336 45 45 } 46 46 47 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 48 static void initializeTimerCoalescingPolicy() 49 { 50 // Set task_latency and task_throughput QOS tiers as appropriate for a visible application. 51 struct task_qos_policy qosinfo = { LATENCY_QOS_TIER_0, THROUGHPUT_QOS_TIER_0 }; 52 kern_return_t kr = task_policy_set(mach_task_self(), TASK_BASE_QOS_POLICY, (task_policy_t)&qosinfo, TASK_QOS_POLICY_COUNT); 53 ASSERT_UNUSED(kr, kr == KERN_SUCCESS); 54 } 55 #endif 56 47 57 void ChildProcess::platformInitialize() 48 58 { 49 59 #if __MAC_OS_X_VERSION_MIN_REQUIRED >= 1090 50 60 setpriority(PRIO_DARWIN_PROCESS, 0, 0); 61 initializeTimerCoalescingPolicy(); 51 62 #endif 52 63 setApplicationIsOccluded(false);
Note:
See TracChangeset
for help on using the changeset viewer.