[go: nahoru, domu]

Mac Overlays: Cleanup and prep for render passes draw quads

Change overlay functions to just take the root render pass, not the
full list of render passes, because only the root is operated on.

Move the logic for handling overlays into a separate function,
DirectRenderer::ProcessRootRenderPassForOverlays, and call this
function only when we hit the root render pass. Note that it is
important that this happen after all render passes are drawn, so that
we can examine the resources that they were drawn to.

Note that the above has the effect that we will no longer skip
drawing those render passes when use of overlays would have
allowed them to be skipped.

Only disallow overlays if the root render pass has a copy request -- the
other render passes can have copies if they want. Fold this logic into
OverlayProcessor::ProcessForOverlays, and remove the function to tell
the OverlayProcessor that the process call was skipped (it now never
will be).

BUG=581526
CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel

Review URL: https://codereview.chromium.org/1709143003

Cr-Commit-Position: refs/heads/master@{#379638}
10 files changed