Changeset 197157 in webkit


Ignore:
Timestamp:
Feb 25, 2016 9:01:25 PM (8 years ago)
Author:
akling@apple.com
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):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r197153 r197157  
     12016-02-25  Andreas Kling  <akling@apple.com>
     2
     3        [iOS] Enable PageCache backing store clearing optimization for WebKit2.
     4        <https://webkit.org/b/154712>
     5
     6        Reviewed by Anders Carlsson.
     7
     8        We had an optimization for iOS where we'd tear down the compositing tree for
     9        pages in the page cache, to save memory, but we were only enabling it when
     10        instantiating a WebKit1 web view.
     11
     12        This patch enables the optimization for WebKit2 as well.
     13
     14        * WebProcess/WebProcess.cpp:
     15        (WebKit::WebProcess::WebProcess):
     16
    1172016-02-25  Ada Chan  <adachan@apple.com>
    218
  • trunk/Source/WebKit2/WebProcess/WebProcess.cpp

    r196943 r197157  
    195195    RuntimeEnabledFeatures::sharedFeatures().setWebkitIndexedDBEnabled(true);
    196196#endif
     197
     198#if PLATFORM(IOS)
     199    PageCache::singleton().setShouldClearBackingStores(true);
     200#endif
    197201}
    198202
Note: See TracChangeset for help on using the changeset viewer.