<?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>251977</bug_id>
          
          <creation_ts>2023-02-09 01:05:43 -0800</creation_ts>
          <short_desc>[GTK4] Enable threaded rendering again using 1 painting thread by default</short_desc>
          <delta_ts>2023-04-25 08:04:12 -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>WebKitGTK</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=247628</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=253108</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=253953</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=255923</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Gtk</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Carlos Garcia Campos">cgarcia</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1932277</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-09 01:05:43 -0800</bug_when>
    <thetext>It seems the issues with threaded rendering were actually caused by using multiple painting threads, but we can still use a single thread to move the painting off the main thread.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932279</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-09 01:09:29 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/9854</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932310</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-02-09 04:09:21 -0800</bug_when>
    <thetext>Committed 260059@main (4af5eb3490da): &lt;https://commits.webkit.org/260059@main&gt;

Reviewed commits have been landed. Closing PR #9854 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932311</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-09 04:12:50 -0800</bug_when>
    <thetext>Maybe should also change:

WTFLogAlways(&quot;The number of Nicosia painting threads is not between 1 and 8. Using the default value 4\n&quot;);
numThreads = 4;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932312</commentid>
    <comment_count>4</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-09 04:13:20 -0800</bug_when>
    <thetext>Why can&apos;t WPE use one thread?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932315</commentid>
    <comment_count>5</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-09 04:32:07 -0800</bug_when>
    <thetext>WPE doesn&apos;t enable threaded rendering by default.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932316</commentid>
    <comment_count>6</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-09 04:32:46 -0800</bug_when>
    <thetext>The default is 4, for GTK we use 1 which is not the default value.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1932319</commentid>
    <comment_count>7</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-09 04:56:28 -0800</bug_when>
    <thetext>Just kind of weird for the &quot;default&quot; to be 4 when GTK uses 1 and WPE uses 0 and nothing uses 4. Whatever.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1937537</commentid>
    <comment_count>8</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-02-28 13:59:52 -0800</bug_when>
    <thetext>I think this was not safe to do after all. See bug #247628 and bug #253108.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>