<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Should use CARenderServerRenderLayerWithTransform for snapshots on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=149069#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - Should use CARenderServerRenderLayerWithTransform for snapshots on iOS"
   href="https://bugs.webkit.org/show_bug.cgi?id=149069">bug 149069</a>
              from <span class="vcard"><a class="email" href="mailto:bdakin&#64;apple.com" title="Beth Dakin &lt;bdakin&#64;apple.com&gt;"> <span class="fn">Beth Dakin</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=149069#c2">comment #2</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=261010&amp;action=diff" name="attach_261010" title="Patch">attachment 261010</a> <a href="attachment.cgi?id=261010&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=261010&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=261010&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebKit2/ChangeLog:11
&gt; &gt; +        This will let us own the backing IOSurface, which will let us make them 
&gt; &gt; +        purgeable and share more code with Mac.
&gt; 
&gt; Except we're not going to make them purgeable for now and it's not clear
&gt; that that is actually the plan so maybe we shouldn't mention that part :D
&gt; </span >

Fixed this!

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1110
&gt; &gt; +    auto surface = WebCore::IOSurface::create(WebCore::expandedIntSize(snapshotSize), WebCore::ColorSpaceDeviceRGB);
&gt; 
&gt; We should do more perf testing here.
&gt; </span >

Perf bot watcher has been alerted! 

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/API/Cocoa/WKWebView.mm:1111
&gt; &gt; +    CARenderServerRenderLayerWithTransform(MACH_PORT_NULL, self.layer.context.contextId, reinterpret_cast&lt;uint64_t&gt;(self.layer), surface-&gt;surface(), 0, 0, &amp;transform);
&gt; 
&gt; I wonder if we have to use some other function on older OSes, like
&gt; _snapshotWhatever does? Probably.
&gt; </span >

Tim and I considered this, and he changed his mind.

<span class="quote">&gt; &gt; Source/WebKit2/UIProcess/mac/ViewSnapshotStore.h:-44
&gt; &gt; -#if PLATFORM(MAC)
&gt; 
&gt; YAYYYYY</span >


YAY. Thanks Tim!

<a href="http://trac.webkit.org/changeset/189628">http://trac.webkit.org/changeset/189628</a></pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>