Changeset 242012 in webkit
- Timestamp:
- Feb 24, 2019 2:37:38 PM (5 years ago)
- Location:
- trunk/Source/WebKit
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/ChangeLog
r242010 r242012 1 2019-02-24 Michael Catanzaro <mcatanzaro@igalia.com> 2 3 [WPE] Install MemoryPressureHandler in UIProcess 4 https://bugs.webkit.org/show_bug.cgi?id=194617 5 6 Reviewed by Žan Doberšek. 7 8 Currently only GTK and Cocoa ports run MemoryPressureHandler in the UI process. WPE should 9 too. 10 11 We need @no-unify to avoid changing the unified source bundles under API/, which are 12 notoriously fragile. (WebMemoryPressureHandler.cpp sorts just above API/.) 13 14 * SourcesWPE.txt: 15 * UIProcess/WebMemoryPressureHandler.cpp: 16 (WebKit::installMemoryPressureHandler): 17 * UIProcess/glib/WebProcessPoolGLib.cpp: 18 (WebKit::WebProcessPool::platformInitialize): 19 1 20 2019-02-23 Chris Dumez <cdumez@apple.com> 2 21 -
trunk/Source/WebKit/SourcesWPE.txt
r241790 r242012 103 103 UIProcess/LegacySessionStateCodingNone.cpp 104 104 UIProcess/WebGrammarDetail.cpp 105 UIProcess/WebMemoryPressureHandler.cpp @no-unify 105 106 UIProcess/WebViewportAttributes.cpp 106 107 -
trunk/Source/WebKit/UIProcess/WebMemoryPressureHandler.cpp
r241224 r242012 27 27 #include "WebMemoryPressureHandler.h" 28 28 29 #include "ViewSnapshotStore.h"30 29 #include "WebProcessPool.h" 31 30 #include <wtf/MemoryPressureHandler.h> 31 32 #if PLATFORM(COCOA) || PLATFORM(GTK) 33 #include "ViewSnapshotStore.h" 34 #endif 32 35 33 36 namespace WebKit { … … 37 40 auto& memoryPressureHandler = MemoryPressureHandler::singleton(); 38 41 memoryPressureHandler.setLowMemoryHandler([] (Critical critical, Synchronous) { 42 #if PLATFORM(COCOA) || PLATFORM(GTK) 39 43 ViewSnapshotStore::singleton().discardSnapshotImages(); 44 #endif 40 45 41 46 for (auto* processPool : WebProcessPool::allProcessPools()) -
trunk/Source/WebKit/UIProcess/glib/WebProcessPoolGLib.cpp
r241816 r242012 79 79 #endif 80 80 81 #if PLATFORM(GTK)82 // To enable this for WPE, we need WebMemoryPressureHandler to lose the83 // hard dependency on ViewSnapshotStore.84 81 if (!memoryPressureMonitorDisabled()) 85 82 installMemoryPressureHandler(); 86 #endif87 83 } 88 84
Note: See TracChangeset
for help on using the changeset viewer.