<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>142748</bug_id>
          
          <creation_ts>2015-03-16 14:36:33 -0700</creation_ts>
          <short_desc>Provide a better RunLoopObserver platform abstraction</short_desc>
          <delta_ts>2025-10-06 14:11:24 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=138691</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=150392</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          <dependson>300022</dependson>
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Matt Baker">mattbaker</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bburg</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mattbaker</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zimmermann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1077568</commentid>
    <comment_count>0</comment_count>
    <who name="Matt Baker">mattbaker</who>
    <bug_when>2015-03-16 14:36:33 -0700</bug_when>
    <thetext>Move Mac platform code out of RunLoopObserver and make the API platform agnostic. This wrapper class is used sparingly in WebKit2 and WebCore, but the Inspector relies on it to time the run loop and provide FPS timeline information. A RunLoopObserver implementation will be required for any platform where we want FPS information to the available.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1077569</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2015-03-16 14:38:00 -0700</bug_when>
    <thetext>&lt;rdar://problem/20179287&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1135712</commentid>
    <comment_count>2</comment_count>
    <who name="Blaze Burg">bburg</who>
    <bug_when>2015-10-22 09:46:46 -0700</bug_when>
    <thetext>This bug is blocked on non-Mac ports figuring out how to create such an abstraction for their run loops.

In bug 150392, cgarcia writes:

&quot;The glib main loop doesn&apos;t provide any way to know its status, and there isn&apos;t any GMainLoopObserver in glib either. We could implement something like that in glib, though, but in the meantime we need a different way to implement at least the rendering frames panel. What we can do with the current glib main loop, is to use custom sources, that we can dispatch. That way we can do whatever before and after the source is actually dispatched, which is what I&apos;m doing in this patch. We plan to change some glib sources used in WebKit with custom sources like the one I&apos;m using in this patch, but in a more generic way. Once we have that we could implement a RunLoopObserver, but only to monitor our own custom sources.&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2148838</commentid>
    <comment_count>3</comment_count>
    <who name="Nikolas Zimmermann">zimmermann</who>
    <bug_when>2025-10-06 14:11:24 -0700</bug_when>
    <thetext>We finally implemented this for Gtk/WPE ports - PR https://github.com/WebKit/WebKit/pull/51678 is currently under review and is expected to be merged soon.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>