DescriptionAvoid deadlock with the UI thread and NPAPI in more cases
By doing the following:
1) Avoid deferring commits until draw if not drawing soon.
2) Don't send BeginMainFrame if swap throttling will block commit.
As a side-effect, some of the changes will also help release
the main thread sooner in some cases where we were holding on to
it for too long.
Additional scheduler deadlock tests added to verify existing
and future operation.
This should also enable us to more easily avoid unconditionally
setting active_tree_needs_first_draw_ to false in
SchedulerStateMachine::UpdateStateOnInvalidateOutputSurface
in followup patches if we want to.
BUG=479671, 477082
Committed: https://crrev.com/2bcaa68bdea4d8dc89641992b7a0b6570d8d4d26
Cr-Commit-Position: refs/heads/master@{#330808}
Patch Set 1 #
Total comments: 19
Patch Set 2 : reformat, rename, and delete - comments and test expectations next #Patch Set 3 : harden expectation #Patch Set 4 : rename and reorder tests #Patch Set 5 : rebase, shorten a test name #
Total comments: 5
Patch Set 6 : get rid of complicated imminent logic #
Total comments: 12
Patch Set 7 : address Sunny's comments #
Messages
Total messages: 20 (3 generated)
|