Changeset 269808 in webkit
- Timestamp:
- Nov 13, 2020 5:09:38 PM (3 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r269807 r269808 1 2020-11-13 Chris Dumez <cdumez@apple.com> 2 3 [GPUProcess] Add basic low memory handling in the GPUProcess 4 https://bugs.webkit.org/show_bug.cgi?id=218926 5 <rdar://problem/70300888> 6 7 Reviewed by Geoffrey Garen. 8 9 Add basic low memory handling in the GPUProcess. For now, the GPUProcess only calls 10 WTF::releaseFastMallocFreeMemory() on low memory warning. 11 12 * GPUProcess/GPUProcess.cpp: 13 (WebKit::GPUProcess::initializeGPUProcess): 14 1 15 2020-11-13 Kate Cheney <katherine_cheney@apple.com> 2 16 -
trunk/Source/WebKit/GPUProcess/GPUProcess.cpp
r267156 r269808 46 46 #include <wtf/Algorithms.h> 47 47 #include <wtf/CallbackAggregator.h> 48 #include <wtf/MemoryPressureHandler.h> 48 49 #include <wtf/OptionSet.h> 49 50 #include <wtf/ProcessPrivilege.h> … … 128 129 WTF::Thread::setCurrentThreadIsUserInitiated(); 129 130 AtomString::init(); 131 132 auto& memoryPressureHandler = MemoryPressureHandler::singleton(); 133 memoryPressureHandler.setLowMemoryHandler([this] (Critical critical, Synchronous) { 134 lowMemoryHandler(critical); 135 }); 136 memoryPressureHandler.install(); 130 137 131 138 #if PLATFORM(IOS_FAMILY) || ENABLE(ROUTING_ARBITRATION)
Note: See TracChangeset
for help on using the changeset viewer.