<?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>251149</bug_id>
          
          <creation_ts>2023-01-25 06:29:01 -0800</creation_ts>
          <short_desc>[GTK] Uses deprecated gdk_cairo_draw_from_gl</short_desc>
          <delta_ts>2023-01-25 08:00:56 -0800</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>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>210100</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Michael Catanzaro">mcatanzaro</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>bugs-noreply</cc>
    
    <cc>cgarcia</cc>
    
    <cc>mcatanzaro</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1928119</commentid>
    <comment_count>0</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-25 06:29:01 -0800</bug_when>
    <thetext>AcceleratedBackingStoreWayland uses gdk_cairo_draw_from_gl, which is documented as &quot;The main way to not draw GL content in GTK.&quot;

&quot;&quot;&quot;
The function is overly complex and produces broken output in various combinations of arguments. If you want to draw with GL textures in GTK, use gdk_gl_texture_new(); if you want to use that texture in Cairo, use gdk_texture_download() to download the data into a Cairo image surface.
&quot;&quot;&quot;

I noticed due to some discussion at Red Hat about how it&apos;s currently broken. See https://gitlab.gnome.org/GNOME/gtk/-/issues/5517 where it&apos;s not flushing properly.

No clue whether it would be feasible to avoid it or not. I&apos;ve never attempted to understand graphics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928121</commentid>
    <comment_count>1</comment_count>
    <who name="Carlos Garcia Campos">cgarcia</who>
    <bug_when>2023-01-25 06:37:33 -0800</bug_when>
    <thetext>We use gdk_cairo_draw_from_gl() only in GTK3, there&apos;s no gdk_gl_texture_new() in GTK3, no?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1928135</commentid>
    <comment_count>2</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-01-25 08:00:56 -0800</bug_when>
    <thetext>OK, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>