RESOLVED FIXED Bug 34034
Race condition in video setup can force videos into software mode
https://bugs.webkit.org/show_bug.cgi?id=34034
Summary Race condition in video setup can force videos into software mode
Simon Fraser (smfr)
Reported 2010-01-22 21:04:47 PST
Sometimes video elements can go into software mode, if the the cursor happens to be over the video element around page load time. The issue is that when the mouse is over the content area, we do an eager layout, which in turn updates compositing layers. RenderLayerCompositor::updateBacking() calls video->acceleratedRenderingStateChanged(), but before any data has loaded, so all the videos start in software mode. Once in softare mode, they don't get pushed into hardware mode later.
Attachments
Patch (3.65 KB, patch)
2010-01-22 21:29 PST, Simon Fraser (smfr)
eric.carlson: review+
Simon Fraser (smfr)
Comment 1 2010-01-22 21:05:09 PST
Simon Fraser (smfr)
Comment 2 2010-01-22 21:29:26 PST
Eric Carlson
Comment 3 2010-01-22 22:01:20 PST
Comment on attachment 47264 [details] Patch While not new to this patch, I think there is still have a problem if mediaPlayerGraphicsLayer() ever returns NULL. The rendering mode will be set to MediaRenderingMovieLayer, but the QTMovieLayer won't get attached until the rendering state changes. r=me
Simon Fraser (smfr)
Comment 4 2010-01-22 22:02:41 PST
I filed bug 34036 to address that problem.
Simon Fraser (smfr)
Comment 5 2010-01-23 08:09:11 PST
Note You need to log in before you can comment on or make changes to this bug.