Title: [197157] trunk/Source/WebKit2
- Revision
- 197157
- Author
- akl...@apple.com
- Date
- 2016-02-25 21:01:25 -0800 (Thu, 25 Feb 2016)
Log Message
[iOS] Enable PageCache backing store clearing optimization for WebKit2.
<https://webkit.org/b/154712>
Reviewed by Anders Carlsson.
We had an optimization for iOS where we'd tear down the compositing tree for
pages in the page cache, to save memory, but we were only enabling it when
instantiating a WebKit1 web view.
This patch enables the optimization for WebKit2 as well.
* WebProcess/WebProcess.cpp:
(WebKit::WebProcess::WebProcess):
Modified Paths
Diff
Modified: trunk/Source/WebKit2/ChangeLog (197156 => 197157)
--- trunk/Source/WebKit2/ChangeLog 2016-02-26 04:36:37 UTC (rev 197156)
+++ trunk/Source/WebKit2/ChangeLog 2016-02-26 05:01:25 UTC (rev 197157)
@@ -1,3 +1,19 @@
+2016-02-25 Andreas Kling <akl...@apple.com>
+
+ [iOS] Enable PageCache backing store clearing optimization for WebKit2.
+ <https://webkit.org/b/154712>
+
+ Reviewed by Anders Carlsson.
+
+ We had an optimization for iOS where we'd tear down the compositing tree for
+ pages in the page cache, to save memory, but we were only enabling it when
+ instantiating a WebKit1 web view.
+
+ This patch enables the optimization for WebKit2 as well.
+
+ * WebProcess/WebProcess.cpp:
+ (WebKit::WebProcess::WebProcess):
+
2016-02-25 Ada Chan <adac...@apple.com>
Update the definition of ENABLE_VIDEO_PRESENTATION_MODE for Mac platform
Modified: trunk/Source/WebKit2/WebProcess/WebProcess.cpp (197156 => 197157)
--- trunk/Source/WebKit2/WebProcess/WebProcess.cpp 2016-02-26 04:36:37 UTC (rev 197156)
+++ trunk/Source/WebKit2/WebProcess/WebProcess.cpp 2016-02-26 05:01:25 UTC (rev 197157)
@@ -194,6 +194,10 @@
#if ENABLE(INDEXED_DATABASE)
RuntimeEnabledFeatures::sharedFeatures().setWebkitIndexedDBEnabled(true);
#endif
+
+#if PLATFORM(IOS)
+ PageCache::singleton().setShouldClearBackingStores(true);
+#endif
}
WebProcess::~WebProcess()
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes