Changeset 187320 in webkit
- Timestamp:
- Jul 24, 2015, 12:54:33 AM (11 years ago)
- Location:
- branches/safari-601.1-branch/Source
- Files:
-
- 5 edited
-
WebCore/ChangeLog (modified) (1 diff)
-
WebCore/platform/spi/cocoa/QuartzCoreSPI.h (modified) (2 diffs)
-
WebKit2/ChangeLog (modified) (1 diff)
-
WebKit2/Platform/spi/ios/UIKitSPI.h (modified) (1 diff)
-
WebKit2/UIProcess/API/Cocoa/WKWebView.mm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/safari-601.1-branch/Source/WebCore/ChangeLog
r187317 r187320 1 2015-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 1 16 2015-07-24 Matthew Hanson <matthew_hanson@apple.com> 2 17 -
branches/safari-601.1-branch/Source/WebCore/platform/spi/cocoa/QuartzCoreSPI.h
r187092 r187320 33 33 34 34 #ifdef __OBJC__ 35 #import <QuartzCore/CADisplay.h> 35 36 #import <QuartzCore/CALayerHost.h> 36 37 #import <QuartzCore/CALayerPrivate.h> … … 150 151 151 152 #if USE(IOSURFACE) 152 EXTERN_C void CARenderServerRender LayerWithTransform(mach_port_t server_port, uint32_t client_id, uint64_t layer_id, IOSurfaceRef iosurface, int32_t ox, int32_t oy, const CATransform3D *matrix);153 EXTERN_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); 153 154 #endif 154 155 -
branches/safari-601.1-branch/Source/WebKit2/ChangeLog
r187319 r187320 1 2015-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 1 18 2015-07-24 Matthew Hanson <matthew_hanson@apple.com> 2 19 -
branches/safari-601.1-branch/Source/WebKit2/Platform/spi/ios/UIKitSPI.h
r187314 r187320 248 248 @end 249 249 250 @class CADisplay; 251 @interface UIScreen (Details) 252 - (CADisplay *)_display; 253 @end 254 250 255 @interface UIScrollView (Details) 251 256 - (void)_stopScrollingAndZoomingAnimations; -
branches/safari-601.1-branch/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm
r187314 r187320 2891 2891 #if USE(IOSURFACE) 2892 2892 // 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) { 2894 2894 auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(WebCore::FloatSize(imageSize)), WebCore::ColorSpaceDeviceRGB); 2895 2895 CGFloat imageScaleInViewCoordinates = imageWidth / rectInViewCoordinates.size.width; 2896 2896 CATransform3D transform = CATransform3DMakeScale(imageScaleInViewCoordinates, imageScaleInViewCoordinates, 1); 2897 2897 transform = CATransform3DTranslate(transform, -rectInViewCoordinates.origin.x, -rectInViewCoordinates.origin.y, 0); 2898 CARenderServerRender LayerWithTransform(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); 2899 2899 completionHandler(surface->createImage().get()); 2900 2901 2900 return; 2902 2901 }
Note:
See TracChangeset
for help on using the changeset viewer.