Title: [266144] trunk/Source/WebCore
- Revision
- 266144
- Author
- [email protected]
- Date
- 2020-08-25 14:43:14 -0700 (Tue, 25 Aug 2020)
Log Message
When using airplay with Youtube, the Youtube tab becomes completely empty and is unresponsive for an extended period of time if we switch the tab
https://bugs.webkit.org/show_bug.cgi?id=215821
Reviewed by Eric Carlson.
We should ignore the request to paint the current video frame when we are using airplay.
It is not necessary to do so, and -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:]
will block the web process for a long time if the video is airplaying.
* platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
(WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext):
Modified Paths
Diff
Modified: trunk/Source/WebCore/ChangeLog (266143 => 266144)
--- trunk/Source/WebCore/ChangeLog 2020-08-25 21:34:18 UTC (rev 266143)
+++ trunk/Source/WebCore/ChangeLog 2020-08-25 21:43:14 UTC (rev 266144)
@@ -1,3 +1,17 @@
+2020-08-25 Peng Liu <[email protected]>
+
+ When using airplay with Youtube, the Youtube tab becomes completely empty and is unresponsive for an extended period of time if we switch the tab
+ https://bugs.webkit.org/show_bug.cgi?id=215821
+
+ Reviewed by Eric Carlson.
+
+ We should ignore the request to paint the current video frame when we are using airplay.
+ It is not necessary to do so, and -[AVAssetImageGenerator copyCGImageAtTime:actualTime:error:]
+ will block the web process for a long time if the video is airplaying.
+
+ * platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm:
+ (WebCore::MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext):
+
2020-08-25 Ryosuke Niwa <[email protected]>
Resolve with the class used to define the Custom Element
Modified: trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm (266143 => 266144)
--- trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2020-08-25 21:34:18 UTC (rev 266143)
+++ trunk/Source/WebCore/platform/graphics/avfoundation/objc/MediaPlayerPrivateAVFoundationObjC.mm 2020-08-25 21:43:14 UTC (rev 266144)
@@ -1523,7 +1523,7 @@
void MediaPlayerPrivateAVFoundationObjC::paintCurrentFrameInContext(GraphicsContext& context, const FloatRect& rect)
{
- if (!metaDataAvailable() || context.paintingDisabled())
+ if (!metaDataAvailable() || context.paintingDisabled() || isCurrentPlaybackTargetWireless())
return;
setDelayCallbacks(true);
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes