Changeset 209865 in webkit
- Timestamp:
- Dec 15, 2016 10:37:18 AM (7 years ago)
- Location:
- trunk/Source
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r209864 r209865 1 2016-12-15 Andreas Kling <akling@apple.com> 2 3 Always clear RenderLayer backing stores when going into page cache. 4 <https://webkit.org/b/165901> 5 6 Reviewed by Simon Fraser. 7 8 We were already doing this for the iOS and GTK+ ports, let's do it everywhere 9 for consistency, and a bit of memory usage improvement. 10 11 This patch just removes the setting and always calls FrameView::clearBackingStores() 12 when there is composited content going into page cache. 13 14 * history/CachedFrame.cpp: 15 (WebCore::CachedFrame::CachedFrame): 16 * history/PageCache.h: 17 (WebCore::PageCache::shouldClearBackingStores): Deleted. 18 (WebCore::PageCache::setShouldClearBackingStores): Deleted. 19 1 20 2016-12-15 Darin Adler <darin@apple.com> 2 21 -
trunk/Source/WebCore/history/CachedFrame.cpp
r208688 r209865 165 165 frame.loader().client().savePlatformDataToCachedFrame(this); 166 166 167 if (m_isComposited && PageCache::singleton().shouldClearBackingStores())167 if (m_isComposited) 168 168 frame.view()->clearBackingStores(); 169 169 -
trunk/Source/WebCore/history/PageCache.h
r208646 r209865 67 67 #endif 68 68 69 bool shouldClearBackingStores() const { return m_shouldClearBackingStores; }70 void setShouldClearBackingStores(bool flag) { m_shouldClearBackingStores = flag; }71 72 69 private: 73 70 PageCache() = default; // Use singleton() instead. … … 80 77 ListHashSet<RefPtr<HistoryItem>> m_items; 81 78 unsigned m_maxSize {0}; 82 bool m_shouldClearBackingStores {false};83 79 84 80 friend class WTF::NeverDestroyed<PageCache>; -
trunk/Source/WebKit/mac/ChangeLog
r209746 r209865 1 2016-12-15 Andreas Kling <akling@apple.com> 2 3 Always clear RenderLayer backing stores when going into page cache. 4 <https://webkit.org/b/165901> 5 6 Reviewed by Simon Fraser. 7 8 * WebView/WebView.mm: 9 (+[WebView _setCacheModel:]): 10 1 11 2016-12-12 Alex Christensen <achristensen@webkit.org> 2 12 -
trunk/Source/WebKit/mac/WebView/WebView.mm
r209733 r209865 8521 8521 pageCache.setMaxSize(pageCacheSize); 8522 8522 #if PLATFORM(IOS) 8523 pageCache.setShouldClearBackingStores(true);8524 8523 nsurlCacheMemoryCapacity = std::max(nsurlCacheMemoryCapacity, [nsurlCache memoryCapacity]); 8525 8524 CFURLCacheRef cfCache; -
trunk/Source/WebKit2/ChangeLog
r209864 r209865 1 2016-12-15 Andreas Kling <akling@apple.com> 2 3 Always clear RenderLayer backing stores when going into page cache. 4 <https://webkit.org/b/165901> 5 6 Reviewed by Simon Fraser. 7 8 * WebProcess/WebProcess.cpp: 9 (WebKit::WebProcess::WebProcess): 10 1 11 2016-12-15 Darin Adler <darin@apple.com> 2 12 -
trunk/Source/WebKit2/WebProcess/WebProcess.cpp
r209840 r209865 204 204 #endif 205 205 206 #if PLATFORM(IOS) || PLATFORM(GTK)207 PageCache::singleton().setShouldClearBackingStores(true);208 #endif209 210 206 ResourceLoadObserver::sharedObserver().setStatisticsStore(m_resourceLoadStatisticsStorage.copyRef()); 211 207 m_resourceLoadStatisticsStorage->setNotificationCallback([this] {
Note: See TracChangeset
for help on using the changeset viewer.