<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Coordinated Graphics] Modernize and cleanup CompositingCoordinator"
   href="https://bugs.webkit.org/show_bug.cgi?id=159212#c4">Comment # 4</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [Coordinated Graphics] Modernize and cleanup CompositingCoordinator"
   href="https://bugs.webkit.org/show_bug.cgi?id=159212">bug 159212</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=159212#c3">comment #3</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=282417&amp;action=diff" name="attach_282417" title="Rebased patch">attachment 282417</a> <a href="attachment.cgi?id=282417&amp;action=edit" title="Rebased patch">[details]</a></span>
&gt; Rebased patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=282417&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=282417&amp;action=review</a></span >

Thanks for the review.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp:217
&gt; &gt; +void CompositingCoordinator::updateImageBacking(CoordinatedImageBackingID imageID, RefPtr&lt;CoordinatedSurface&gt;&amp; coordinatedSurface)
&gt; 
&gt; I don't think this should be receiving a reference to RefPtr.</span >

Could you elaborate? what's wrong with the reference and what should I do instead? just copying the RefPtr? I don't understand whey PassRefPtr is used there TBH.

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp:286
&gt; &gt; +void CompositingCoordinator::createUpdateAtlas(uint32_t atlasID, RefPtr&lt;CoordinatedSurface&gt;&amp; coordinatedSurface)
&gt; 
&gt; I don't think this should be receiving a reference to RefPtr.
&gt; 
&gt; &gt; Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CompositingCoordinator.cpp:357
&gt; &gt; +    if (auto layer = m_registeredLayers.get(layerID))
&gt; 
&gt; auto*, since m_registeredLayers is mapping IDs to pointers to
&gt; CoordinatedGraphicsLayer objects.</span >

Isn't that automatic? doesn't auto deduce it's a pointer?

<span class="quote">&gt; &gt; Source/WebKit2/WebProcess/WebPage/CoordinatedGraphics/CoordinatedLayerTreeHost.h:88
&gt; &gt; -    std::unique_ptr&lt;CompositingCoordinator&gt; m_coordinator;
&gt; &gt; +    CompositingCoordinator m_coordinator;
&gt; 
&gt; You can drop WTF_MAKE_FAST_ALLOCATED from CompositingCoordinator class now.</span >

Indeed.</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>