Changeset 167792 in webkit


Ignore:
Timestamp:
Apr 24, 2014 11:28:33 PM (10 years ago)
Author:
akling@apple.com
Message:

[iOS WebKit2] RemoteLayerTreeDrawingArea should force CA to garbage collect surfaces.
<https://webkit.org/b/132160>
<rdar://problem/16110687>

Do an empty CATransaction at the end of RemoteLayerTreeDrawingArea::flushLayers()
to get CA to garbage collect its IOSurfaces. This helps clean up unused surfaces
that we'd otherwise end up hanging on to for a long time.

Reviewed by Tim Horton.

  • WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:

(WebKit::RemoteLayerTreeDrawingArea::didUpdate):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r167788 r167792  
     12014-04-24  Andreas Kling  <akling@apple.com>
     2
     3        [iOS WebKit2] RemoteLayerTreeDrawingArea should force CA to garbage collect surfaces.
     4        <https://webkit.org/b/132160>
     5        <rdar://problem/16110687>
     6
     7        Do an empty CATransaction at the end of RemoteLayerTreeDrawingArea::flushLayers()
     8        to get CA to garbage collect its IOSurfaces. This helps clean up unused surfaces
     9        that we'd otherwise end up hanging on to for a long time.
     10
     11        Reviewed by Tim Horton.
     12
     13        * WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm:
     14        (WebKit::RemoteLayerTreeDrawingArea::didUpdate):
     15
    1162014-04-24  Commit Queue  <commit-queue@webkit.org>
    217
  • trunk/Source/WebKit2/WebProcess/WebPage/mac/RemoteLayerTreeDrawingArea.mm

    r167740 r167792  
    4343#import <WebCore/Settings.h>
    4444#import <WebCore/TiledBacking.h>
     45#import <QuartzCore/QuartzCore.h>
    4546
    4647using namespace WebCore;
     
    296297        m_hadFlushDeferredWhileWaitingForBackingStoreSwap = false;
    297298    }
     299
     300    // This empty transaction serves to trigger CA's garbage collection of IOSurfaces. See <rdar://problem/16110687>
     301    [CATransaction begin];
     302    [CATransaction commit];
    298303}
    299304
Note: See TracChangeset for help on using the changeset viewer.