<?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>222674</bug_id>
          
          <creation_ts>2021-03-03 11:41:41 -0800</creation_ts>
          <short_desc>PaintFrameForMedia may be processed before the target MediaPlayer has been received in the GPU process</short_desc>
          <delta_ts>2021-04-30 15:33:02 -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>WebKit2</component>
          <version>WebKit Nightly 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=222633</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="Wenson Hsieh">wenson_hsieh</reporter>
          <assigned_to name="Peng Liu">peng.liu6</assigned_to>
          <cc>peng.liu6</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1735417</commentid>
    <comment_count>0</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-03-03 11:41:41 -0800</bug_when>
    <thetext>This may cause `PaintFrameForMedia` to (incorrectly) be a no-op.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1735418</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2021-03-03 11:42:08 -0800</bug_when>
    <thetext>&lt;rdar://problem/74995642&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1740175</commentid>
    <comment_count>2</comment_count>
    <who name="Wenson Hsieh">wenson_hsieh</who>
    <bug_when>2021-03-16 13:59:39 -0700</bug_when>
    <thetext>(Some more info…)

PaintFrameForMedia is a display list item that grabs the MediaPlayer corresponding to its identifier, and paints the current frame of the MediaPlayer into the destination image buffer.

However, there&apos;s currently no mechanism to ensure that we&apos;ve created the MediaPlayer in the GPU Process at the time when the item (PaintFrameForMedia) is being applied.

For other similar drawing items (such as items for drawing fonts or images), we&apos;ll notice that we&apos;re missing the cached resource, bail from the main display list processing loop, and resume processing when we&apos;ve received the resource. However, MediaPlayer currently does not integrate with this mechanism, so we end up treating the item as a no-op in the case where we haven&apos;t received the MediaPlayer yet.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1755838</commentid>
    <comment_count>3</comment_count>
    <who name="Peng Liu">peng.liu6</who>
    <bug_when>2021-04-30 15:33:02 -0700</bug_when>
    <thetext>*** Bug 222633 has been marked as a duplicate of this bug. ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>