<?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>252988</bug_id>
          
          <creation_ts>2023-02-27 06:15:50 -0800</creation_ts>
          <short_desc>[GTK] Use DMABuf and WebKit IPC for rendering instead of wpe/x11</short_desc>
          <delta_ts>2023-04-15 01:26:33 -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>
          
          
          <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>237649</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Carlos Garcia Campos">cgarcia</reporter>
          <assigned_to name="Diego Pino">dpino</assigned_to>
          <cc>balducci</cc>
    
    <cc>bugs-noreply</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1936992</commentid>
    <comment_count>0</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-27 06:15:50 -0800</bug_when>
    <thetext>Instead of the wpe rendered, which uses a nested wayland compositor, and x11, which uses a redirected xcomposito window, we can make the web process render always into a pbuffer using mesa surfaceless platform and export the rendered texture using DMAbuf to be consumed by the UI process. This way the rendering is independent from the platform (wayland/x11), in the UI process we just import the DMABuf into a texture that we pass to GTK for rendering into the web view widget. If any of the required extensions is not available we can fallback to current platform dependent approach.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1936993</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-02-27 06:21:59 -0800</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/10726</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1944608</commentid>
    <comment_count>2</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-28 07:30:12 -0700</bug_when>
    <thetext>Committed 262210@main (d2424c0fc67f): &lt;https://commits.webkit.org/262210@main&gt;

Reviewed commits have been landed. Closing PR #10726 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945213</commentid>
    <comment_count>3</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-03-29 18:10:39 -0700</bug_when>
    <thetext>Re-opening for pull request https://github.com/webkit/webkit/pull/12153</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945215</commentid>
    <comment_count>4</comment_count>
    <who name="Diego Pino">dpino</who>
    <bug_when>2023-03-29 18:18:51 -0700</bug_when>
    <thetext>Ubuntu 20.04 post-commit bot is failing after this patch:

https://build.webkit.org/#/builders/595/builds/8868

```
/home/buildbot/worker/GTK-Linux-64-bit-Release-Ubuntu-2004-Build/build/Source/WebKit/WebProcess/glib/WebProcessGLib.cpp:128:9: error: ‘m_displayForCompositing’ was not declared in this scope
  128 |         m_displayForCompositing = WebCore::PlatformDisplayHeadless::create();
```</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1945688</commentid>
    <comment_count>5</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-03-31 08:18:12 -0700</bug_when>
    <thetext>Committed 262405@main (84f510837198): &lt;https://commits.webkit.org/262405@main&gt;

Reviewed commits have been landed. Closing PR #12153 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1948950</commentid>
    <comment_count>6</comment_count>
    <who name="gabriele balducci">balducci</who>
    <bug_when>2023-04-15 01:26:33 -0700</bug_when>
    <thetext>*** Bug 254976 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>