Descriptioncc: Make LayerTreeHostImpl::SwapBuffers not virtual.
This makes it no longer exposed to unit tests, which helps because
Draw&Swap will be joining into a single action in LayerTreeHostImpl
since it doesn't actually "draw" anything, it just IPCs things.
Tests now have a SwapBuffersCompleteOnThread() instead, which is called
asynchronously from anything LayerTreeHostImpl is doing, so I removed
the LayerTreeHostImpl* passed to it, and changed tests to use
DrawLayersOnThread() when they need to run things at the time of
LayerTreeHostImpl doing things, and handle SwapBuffersCompleteOnThread()
being asynchronous.
This would be a bit simpler if there was no SwapBuffers after
DrawLayersOnThread() happening at all, but I work with it in the tests
anyhow.
R=enne
BUG=606056
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/9c14156250323f5f994239a4597022cdd6ba9020
Cr-Commit-Position: refs/heads/master@{#405362}
Patch Set 1 #Patch Set 2 : novirtualswapbuffers: . #
Total comments: 8
Patch Set 3 : novirtualswapbuffers: self-nits #
Total comments: 2
Patch Set 4 : novirtualswapbuffers: num_draws_ #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 14 (6 generated)
|