Summary: | REGRESSION: Rendering in <video> element appears to render quickly to catch up if it has been playing in a background tab | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Jer Noble <jer.noble> | ||||||
Component: | Media | Assignee: | Jer Noble <jer.noble> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | eric.carlson, mrowe | ||||||
Priority: | P2 | Keywords: | InRadar, PlatformOnly | ||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | Mac | ||||||||
OS: | OS X 10.6 | ||||||||
URL: | http://flyingmeat.com/stuff/doubledoubleyourstrokestyle.mov | ||||||||
Attachments: |
|
Description
Jer Noble
2011-04-14 23:21:53 PDT
Created attachment 89742 [details]
Patch
Comment on attachment 89742 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=89742&action=review > Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:119 > + CALayer* root = rootLayer()->platformLayer(); > + [[NSNotificationCenter defaultCenter] postNotificationName:@"NSCAViewRenderDidPauseNotification" object:nil userInfo:[NSDictionary dictionaryWithObject:root forKey:@"layer"]]; > + [root setValue:(id)kCFBooleanTrue forKey:@"NSCAViewRenderPaused"]; Shouldn't you set the property before posting the notification? > Source/WebKit2/WebProcess/WebPage/ca/mac/LayerTreeHostCAMac.mm:126 > + CALayer* root = rootLayer()->platformLayer(); > + [[NSNotificationCenter defaultCenter] postNotificationName:@"NSCAViewRenderDidResumeNotification" object:nil userInfo:[NSDictionary dictionaryWithObject:root forKey:@"layer"]]; > + [root setValue:(id)kCFBooleanFalse forKey:@"NSCAViewRenderPaused"]; Ditto. Created attachment 89806 [details]
Patch
Committed r83994: <http://trac.webkit.org/changeset/83994> |