DescriptionMac: Well-behaved accelerated plugins, actual fix
Configure the opengl view to draw below the window, draw the view with NSClearColor so that's transparent, and make the window non-opaque while plugins are showing, so that the opengl surface can show through.
This is a bit slower than previously without this patch, but it's about as fast as it was when we used CoreAnimation to show IOSurfaces.
Parts of this code are from Simon Fraser's MacTierra code (with permission).
BUG=44087, 51748
TEST=
* Go to youtube. Findbar should show up on top of video. Go fullscreen. Tab overlay should show up on top of video.
* Go to youtube, drag tab with video out and to a new window. Video should continue playing.
* Install https://chrome.google.com/extensions/detail/bdnkaenpadjoldiddfdidinjmjeagaji , click browser action. Should still work.
* Install a transparent theme such as https://tools.google.com/chrome/intl/cy/themes/theme_at_mecko.html or http://chromium.googlecode.com/issues/attachment?aid=3778755830122130591&name=theme-bug.crx&token=27908ca7e699a023c8446657b24c4696 . Browser window shouldn't become transparent while videos are playing. (This is actually not yet working)
Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57201
Patch Set 1 #Patch Set 2 : '' #
Total comments: 6
Patch Set 3 : '' #Patch Set 4 : chaos #Patch Set 5 : transparent #Patch Set 6 : '' #Patch Set 7 : test #
Total comments: 6
Messages
Total messages: 14 (0 generated)
|