DescriptionMac: Don't draw a cc::Surface while suspended
It is possible that, when closing a tab on Mac, the RWHVMac that
is being closed will have requested that the ui::Compositor draw, and
that draw will have not happened yet. The draw will happen after
the RWHVMac and its renderer have been destroyed which is wasteful
in that the draw is unwanted and buggy in that the resources needed
by the draw are destroyed.
To avoid this, ensure that the cc::Surface does not draw if the output
surface is suspended.
BUG=508287
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel
Committed: https://crrev.com/cf9b1d9389e1b5052691df0a1521f18af9ca3579
Cr-Commit-Position: refs/heads/master@{#338131}
Patch Set 1 #Patch Set 2 : fix other platform compile #
Messages
Total messages: 12 (5 generated)
|