<?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>256695</bug_id>
          
          <creation_ts>2023-05-12 04:29:44 -0700</creation_ts>
          <short_desc>WebRTC backed media element rendering is slow to update to changes of layers (size or layer made hidden/visible)</short_desc>
          <delta_ts>2023-06-20 00:00:11 -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>Layout and Rendering</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>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="youenn fablet">youennf</reporter>
          <assigned_to name="youenn fablet">youennf</assigned_to>
          <cc>bfulgham</cc>
    
    <cc>eric.carlson</cc>
    
    <cc>jer.noble</cc>
    
    <cc>ltsg0317</cc>
    
    <cc>pvollan</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1954941</commentid>
    <comment_count>0</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-12 04:29:44 -0700</bug_when>
    <thetext>WebRTC backed media element rendering is slow to update to changes of layers (size or layer made hidden/visible)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954942</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2023-05-12 04:30:04 -0700</bug_when>
    <thetext>&lt;rdar://problem/109257177&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954943</commentid>
    <comment_count>2</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-12 04:31:12 -0700</bug_when>
    <thetext>It takes sometimes more than one second for rendering to be updated.
I was able to see this with a recent Safari build on iOS when rotating devices (in which case the size of the video element may change).

I was also able to see this on macOS when setting a video track to enabled=false.
It takes sometimes more than one second to have the layer being hidden.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1954944</commentid>
    <comment_count>3</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-12 04:33:04 -0700</bug_when>
    <thetext>I wonder whether this is related to changes we did related to CARenderServer blocking.
Is there an easy way to unblock it and get back to the previous GPU based approach?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957555</commentid>
    <comment_count>4</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-23 23:33:09 -0700</bug_when>
    <thetext>There are LocalSampleBufferDisplayLayer logs at the time we enqueue video frames in the AVSBDL.
It may take more than 5 seconds sometime to render the first video frame.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1957583</commentid>
    <comment_count>5</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-24 03:28:48 -0700</bug_when>
    <thetext>This is a regression from https://bugs.webkit.org/show_bug.cgi?id=253761.
Reverting https://commits.webkit.org/261709@main fixes the issue.

When the page is blank at camera starting time in macOS, CADebug tells us that the &quot;LocalSampleBufferDisplayLayer AVSampleBufferDisplayLayer parent&quot; size is (0, 0).
When the rendering is ok, the size is correctly set.

What is strange is that LocalSampleBufferDisplayLayer sets its CALayer bounds in a timely manner, but it does not seem to show up in CADebug.
At some point, rendering is updated, sometimes after 1 second, sometimes after 5 or more seconds.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959003</commentid>
    <comment_count>6</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-05-31 04:28:21 -0700</bug_when>
    <thetext>Pull request: https://github.com/WebKit/WebKit/pull/14534</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1959266</commentid>
    <comment_count>7</comment_count>
    <who name="EWS">ews-feeder</who>
    <bug_when>2023-05-31 22:58:08 -0700</bug_when>
    <thetext>Committed 264777@main (0e0d7976dfe0): &lt;https://commits.webkit.org/264777@main&gt;

Reviewed commits have been landed. Closing PR #14534 and removing active labels.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1962503</commentid>
    <comment_count>8</comment_count>
    <who name="youenn fablet">youennf</who>
    <bug_when>2023-06-20 00:00:11 -0700</bug_when>
    <thetext>*** Bug 257885 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>