Changeset 230030 in webkit


Ignore:
Timestamp:
Mar 28, 2018 9:10:04 AM (6 years ago)
Author:
timothy_horton@apple.com
Message:

Make use of HAVE(CORE_ANIMATION_RENDER_SERVER) in more places
https://bugs.webkit.org/show_bug.cgi?id=184072
<rdar://problem/38946530>

Reviewed by Dan Bernstein.

  • Platform/mac/LayerHostingContext.mm:

(WebKit::LayerHostingContext::createForExternalHostingProcess):

  • UIProcess/mac/ViewSnapshotStore.h:
  • UIProcess/mac/ViewSnapshotStore.mm:

(WebKit::ViewSnapshot::clearImage):

Location:
trunk/Source/WebKit
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/ChangeLog

    r230029 r230030  
     12018-03-28  Tim Horton  <timothy_horton@apple.com>
     2
     3        Make use of HAVE(CORE_ANIMATION_RENDER_SERVER) in more places
     4        https://bugs.webkit.org/show_bug.cgi?id=184072
     5        <rdar://problem/38946530>
     6
     7        Reviewed by Dan Bernstein.
     8
     9        * Platform/mac/LayerHostingContext.mm:
     10        (WebKit::LayerHostingContext::createForExternalHostingProcess):
     11        * UIProcess/mac/ViewSnapshotStore.h:
     12        * UIProcess/mac/ViewSnapshotStore.mm:
     13        (WebKit::ViewSnapshot::clearImage):
     14
    1152018-03-28  Wenson Hsieh  <wenson_hsieh@apple.com>
    216
  • trunk/Source/WebKit/Platform/mac/LayerHostingContext.mm

    r229629 r230030  
    6262    // without being explicitly parented. See <rdar://problem/16089267> for details.
    6363    layerHostingContext->m_context = [CAContext remoteContextWithOptions:@{
     64#if HAVE(CORE_ANIMATION_RENDER_SERVER)
    6465        kCAContextIgnoresHitTest : @YES,
    65         kCAContextDisplayId : @10000 }];
     66        kCAContextDisplayId : @10000
     67#endif
     68    }];
    6669#elif __MAC_OS_X_VERSION_MIN_REQUIRED >= 101400
    6770    [CAContext setAllowsCGSConnections:NO];
  • trunk/Source/WebKit/UIProcess/mac/ViewSnapshotStore.h

    r228853 r230030  
    128128    bool disableSnapshotVolatilityForTesting() const { return m_disableSnapshotVolatility; }
    129129
    130 #if !HAVE(IOSURFACE)
     130#if !HAVE(IOSURFACE) && HAVE(CORE_ANIMATION_RENDER_SERVER)
    131131    static CAContext *snapshottingContext();
    132132#endif
  • trunk/Source/WebKit/UIProcess/mac/ViewSnapshotStore.mm

    r228853 r230030  
    6161}
    6262
    63 #if !HAVE(IOSURFACE)
     63#if !HAVE(IOSURFACE) && HAVE(CORE_ANIMATION_RENDER_SERVER)
    6464CAContext *ViewSnapshotStore::snapshottingContext()
    6565{
     
    196196    m_surface = nullptr;
    197197#else
     198#if HAVE(CORE_ANIMATION_RENDER_SERVER)
    198199    [ViewSnapshotStore::snapshottingContext() deleteSlot:m_slotID];
     200#endif
    199201    m_slotID = 0;
    200202    m_imageSizeInBytes = 0;
Note: See TracChangeset for help on using the changeset viewer.