Changeset 189986 in webkit


Ignore:
Timestamp:
Sep 18, 2015, 2:37:17 PM (10 years ago)
Author:
Beth Dakin
Message:

Snapshots broken on iOS
https://bugs.webkit.org/show_bug.cgi?id=149354

Reviewed by Tim Horton.

We need to send the IOSurface to ViewSnapshot::create() for this to work.

  • UIProcess/API/Cocoa/WKWebView.mm:

(-[WKWebView _takeViewSnapshot]):

Location:
trunk/Source/WebKit2
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r189971 r189986  
     12015-09-18  Beth Dakin  <bdakin@apple.com>
     2
     3        Snapshots broken on iOS
     4        https://bugs.webkit.org/show_bug.cgi?id=149354
     5
     6        Reviewed by Tim Horton.
     7
     8        We need to send the IOSurface to ViewSnapshot::create() for this to work.
     9        * UIProcess/API/Cocoa/WKWebView.mm:
     10        (-[WKWebView _takeViewSnapshot]):
     11
    1122015-09-18  Chris Dumez  <cdumez@apple.com>
    213
  • trunk/Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm

    r189773 r189986  
    11131113    CARenderServerRenderLayerWithTransform(MACH_PORT_NULL, self.layer.context.contextId, reinterpret_cast<uint64_t>(self.layer), surface->surface(), 0, 0, &transform);
    11141114
    1115     return WebKit::ViewSnapshot::create(nullptr);
     1115    return WebKit::ViewSnapshot::create(WTF::move(surface));
    11161116#else
    11171117    uint32_t slotID = [WebKit::ViewSnapshotStore::snapshottingContext() createImageSlot:snapshotSize hasAlpha:YES];
Note: See TracChangeset for help on using the changeset viewer.