<?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>218186</bug_id>
          
          <creation_ts>2020-10-26 06:36:01 -0700</creation_ts>
          <short_desc>CanvasCaptureMediaStreamTrack enables WebGL drawing buffer preserving and changes clear semantics</short_desc>
          <delta_ts>2021-03-06 04:43:59 -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>WebGL</component>
          <version>WebKit Local 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=218187</see_also>
    
    <see_also>https://bugs.webkit.org/show_bug.cgi?id=217211</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Kimmo Kinnunen">kkinnunen</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dino</cc>
    
    <cc>jonlee</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1701434</commentid>
    <comment_count>0</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2020-10-26 06:36:01 -0700</bug_when>
    <thetext>CanvasCaptureMediaStreamTrack enables WebGL drawing buffer preserving

This changes de-facto observable behavior, as websites expect rAF to prepare the drawing buffer for display.

Web sites in general sometimes depend on the buffer clearing semantics.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1701435</commentid>
    <comment_count>1</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2020-10-26 06:38:43 -0700</bug_when>
    <thetext>Marking as blocking WebGL GPU Process work, since this is buggy that would need to be implemented in remote WebGL.

This should be instead fixed by introducing a canvas monitoring callback for drawing buffer prepare and calling that before the buffer is being prepared for display.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1703494</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2020-11-02 05:36:19 -0800</bug_when>
    <thetext>&lt;rdar://problem/70946812&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1736774</commentid>
    <comment_count>3</comment_count>
    <who name="Kimmo Kinnunen">kkinnunen</who>
    <bug_when>2021-03-06 04:43:59 -0800</bug_when>
    <thetext>So the purpose of the feature is to take the webgl canvas contents and send it through webrtc, if I understand correctly.

What the implementation does is:
1) Turn on WebGL &quot;preserve drawing buffer&quot; flag of the webgl context.
2) Takes a snapshot of the webgl canvas contents at random point in time after each modification when the execution drops to main loop
3) send that picture over webrtc

Steps 1 and 2 are not good.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>