⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 187320 in webkit


Ignore:
Timestamp:
Jul 24, 2015, 12:54:33 AM (11 years ago)
Author:
matthew_hanson@apple.com
Message:

Merge r187215. rdar://problem/21032083

Location:
branches/safari-601.1-branch/Source
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/safari-601.1-branch/Source/WebCore/ChangeLog

    r187317 r187320  
     12015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r187215. rdar://problem/21032083
     4
     5    2015-07-22  James Savage  <james.savage@apple.com>
     6
     7            Use updated CoreAnimation snapshot SPI.
     8            https://bugs.webkit.org/show_bug.cgi?id=147197
     9            <rdar://problem/21032083>
     10
     11            Reviewed by Tim Horton.
     12            Patch by James Savage.
     13
     14            * platform/spi/cocoa/QuartzCoreSPI.h:
     15
    1162015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
    217
  • branches/safari-601.1-branch/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h

    r187092 r187320  
    3333
    3434#ifdef __OBJC__
     35#import <QuartzCore/CADisplay.h>
    3536#import <QuartzCore/CALayerHost.h>
    3637#import <QuartzCore/CALayerPrivate.h>
     
    150151
    151152#if USE(IOSURFACE)
    152 EXTERN_C void CARenderServerRenderLayerWithTransform(mach_port_t server_port, uint32_t client_id, uint64_t layer_id, IOSurfaceRef iosurface, int32_t ox, int32_t oy, const CATransform3D *matrix);
     153EXTERN_C void CARenderServerRenderDisplayLayerWithTransformAndTimeOffset(mach_port_t server_port, CFStringRef display_name, uint32_t client_id, uint64_t layer_id, IOSurfaceRef iosurface, int32_t ox, int32_t oy, const CATransform3D *matrix, CFTimeInterval offset);
    153154#endif
    154155
  • branches/safari-601.1-branch/Source/WebKit2/ChangeLog

    r187319 r187320  
     12015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
     2
     3        Merge r187215. rdar://problem/21032083
     4
     5    2015-07-22  James Savage  <james.savage@apple.com>
     6
     7            Use updated CoreAnimation snapshot SPI.
     8            https://bugs.webkit.org/show_bug.cgi?id=147197
     9            <rdar://problem/21032083>
     10
     11            Reviewed by Tim Horton.
     12            Patch by James Savage.
     13
     14            * Platform/spi/ios/UIKitSPI.h:
     15            * UIProcess/API/Cocoa/WKWebView.mm:
     16            (-[WKWebView _snapshotRect:intoImageOfWidth:completionHandler:]):
     17
    1182015-07-24  Matthew Hanson  <matthew_hanson@apple.com>
    219
  • branches/safari-601.1-branch/Source/WebKit2/Platform/spi/ios/UIKitSPI.h

    r187314 r187320  
    248248@end
    249249
     250@class CADisplay;
     251@interface UIScreen (Details)
     252- (CADisplay *)_display;
     253@end
     254
    250255@interface UIScrollView (Details)
    251256- (void)_stopScrollingAndZoomingAnimations;
  • branches/safari-601.1-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r187314 r187320  
    28912891#if USE(IOSURFACE)
    28922892    // If we are parented and thus won't incur a significant penalty from paging in tiles, snapshot the view hierarchy directly.
    2893     if (self.window) {
     2893    if (CADisplay *display = self.window.screen._display) {
    28942894        auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(WebCore::FloatSize(imageSize)), WebCore::ColorSpaceDeviceRGB);
    28952895        CGFloat imageScaleInViewCoordinates = imageWidth / rectInViewCoordinates.size.width;
    28962896        CATransform3D transform = CATransform3DMakeScale(imageScaleInViewCoordinates, imageScaleInViewCoordinates, 1);
    28972897        transform = CATransform3DTranslate(transform, -rectInViewCoordinates.origin.x, -rectInViewCoordinates.origin.y, 0);
    2898         CARenderServerRenderLayerWithTransform(MACH_PORT_NULL, self.layer.context.contextId, reinterpret_cast<uint64_t>(self.layer), surface->surface(), 0, 0, &transform);
     2898        CARenderServerRenderDisplayLayerWithTransformAndTimeOffset(MACH_PORT_NULL, (CFStringRef)display.name, self.layer.context.contextId, reinterpret_cast<uint64_t>(self.layer), surface->surface(), 0, 0, &transform, 0);
    28992899        completionHandler(surface->createImage().get());
    2900 
    29012900        return;
    29022901    }
Note: See TracChangeset for help on using the changeset viewer.