[Webkit-unassigned] [Bug 150756] [GTK] Use a RunLoop::Timer to schedule rendering frames in accelerated compositing mode
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Nov 1 01:30:56 PST 2015
https://bugs.webkit.org/show_bug.cgi?id=150756
--- Comment #4 from Carlos Garcia Campos <cgarcia at igalia.com> ---
(In reply to comment #3)
> Comment on attachment 264472 [details]
> Patch
>
> View in context:
> https://bugs.webkit.org/attachment.cgi?id=264472&action=review
>
> > Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:69
> > + // We use a GLib timer because otherwise GTK+ event handling during dragging can starve WebCore timers, which have a lower priority.
> > + // Use a higher priority than WebCore timers.
>
> I donât understand what âwe use a GLib timerâ means here, since we are using
> a RunLoop timer. Should be clearer on that.
Yes, the fact that the run loop timer implementation uses a glib timer is an implementation detail. I'll reword that.
> > Source/WebKit2/WebProcess/WebPage/gtk/LayerTreeHostGtk.cpp:107
> > + static const double targetFramerate = 1 / 60.0;
> > + // When rendering layers takes more time than the target delay (0.016), we end up scheduling layer flushes
> > + // immediately. Since the layer flush timer has a higher priority than WebCore timers, these are never
> > + // fired while we keep scheduling layer flushes immediately.
> > + double current = monotonicallyIncreasingTime();
> > + double timeToNextFlush = std::max(targetFramerate - (current - m_fireTime), 0.0);
>
> We prefer use of std::chrono in new code, rather than the "double in
> seconds" style we wrote in older code. Would be good to return here and move
> to that.
Ok, I'll do it in a different patch
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.webkit.org/pipermail/webkit-unassigned/attachments/20151101/8a885f9b/attachment.html>
More information about the webkit-unassigned
mailing list