<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body><span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span> changed
              <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Use a RunLoop::Timer to schedule rendering frames in accelerated compositing mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=150756">bug 150756</a>
        <br>
             <table border="1" cellspacing="0" cellpadding="8">
          <tr>
            <th>What</th>
            <th>Removed</th>
            <th>Added</th>
          </tr>

         <tr>
           <td style="text-align:right;">Attachment #264472 Flags</td>
           <td>review?
           </td>
           <td>review+
           </td>
         </tr></table>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Use a RunLoop::Timer to schedule rendering frames in accelerated compositing mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=150756#c3">Comment # 3</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Use a RunLoop::Timer to schedule rendering frames in accelerated compositing mode"
   href="https://bugs.webkit.org/show_bug.cgi?id=150756">bug 150756</a>
              from <span class="vcard"><a class="email" href="mailto:darin&#64;apple.com" title="Darin Adler &lt;darin&#64;apple.com&gt;"> <span class="fn">Darin Adler</span></a>
</span></b>
        <pre>Comment on <span class=""><a href="attachment.cgi?id=264472&amp;action=diff" name="attach_264472" title="Patch">attachment 264472</a> <a href="attachment.cgi?id=264472&amp;action=edit" title="Patch">[details]</a></span>
Patch

View in context: <a href="https://bugs.webkit.org/attachment.cgi?id=264472&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=264472&amp;action=review</a>

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:69
&gt; +    // We use a GLib timer because otherwise GTK+ event handling during dragging can starve WebCore timers, which have a lower priority.
&gt; +    // Use a higher priority than WebCore timers.</span >

I don’t understand what “we use a GLib timer” means here, since we are using a RunLoop timer. Should be clearer on that.

<span class="quote">&gt; Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:107
&gt; +    static const double targetFramerate = 1 / 60.0;
&gt; +    // When rendering layers takes more time than the target delay (0.016), we end up scheduling layer flushes
&gt; +    // immediately. Since the layer flush timer has a higher priority than WebCore timers, these are never
&gt; +    // fired while we keep scheduling layer flushes immediately.
&gt; +    double current = monotonicallyIncreasingTime();
&gt; +    double timeToNextFlush = std::max(targetFramerate - (current - m_fireTime), 0.0);</span >

We prefer use of std::chrono in new code, rather than the &quot;double in seconds&quot; style we wrote in older code. Would be good to return here and move to that.</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>