RESOLVED FIXED Bug 84301
[chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initialization before our surface is available
https://bugs.webkit.org/show_bug.cgi?id=84301
Summary [chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress ini...
James Robinson
Reported 2012-04-18 16:35:22 PDT
[chromium] Add canBeginFrame state to CCSchedulerStateMachine to suppress initialization before our surface is available
Attachments
Patch (18.06 KB, patch)
2012-04-18 16:38 PDT, James Robinson
enne: review+
James Robinson
Comment 1 2012-04-18 16:38:02 PDT
James Robinson
Comment 2 2012-04-18 16:38:20 PDT
This is the first part of the fixes for http://code.google.com/p/chromium/issues/detail?id=123356
Nat Duca
Comment 3 2012-04-18 16:56:33 PDT
Comment on attachment 137802 [details] Patch Neat. LGTM.
Adrienne Walker
Comment 4 2012-04-18 17:00:47 PDT
Comment on attachment 137802 [details] Patch How does canBeginFrame differ from canDraw? Is there ever a point where we want to begin a frame but can't draw?
James Robinson
Comment 5 2012-04-18 17:04:45 PDT
(In reply to comment #4) > (From update of attachment 137802 [details]) > How does canBeginFrame differ from canDraw? Is there ever a point where we want to begin a frame but can't draw? canDraw doesn't block commit, this does. The reason is that if the surface isn't ready yet, then the first makeContextCurrent() will fail so we can't even start the commit. There are situations where we don't want to swap an actual frame but we can usefully do other things (do a commit, enqueue texture uploads, etc).
Adrienne Walker
Comment 6 2012-04-18 17:16:48 PDT
Comment on attachment 137802 [details] Patch Ok, thanks for the explanation. R=me.
James Robinson
Comment 7 2012-04-18 17:41:42 PDT
Here's the rest with a longer explanation in the WebKit/chromium/ChangeLog: https://bugs.webkit.org/show_bug.cgi?id=84305
James Robinson
Comment 8 2012-04-18 18:30:51 PDT
Note You need to log in before you can comment on or make changes to this bug.