viz: Fix tracking undrawn surfaces.

Each Surface is currently already explicitly notified by the
SurfaceAggregator when it is drawn, or when its copy-requests start to
be processed. It is not necessary to separately track the undrawn
surfaces from SurfaceAggregator. So use that information to decide
whether a Surface is drawn or not.


Change-Id: I45aa1d1ccce1d5c5394d3f07bd887cf5426f04fc
Reviewed-by: Antoine Labour <>
Commit-Queue: Sadrul Chowdhury <>
Cr-Original-Commit-Position: refs/heads/master@{#627545}(cherry picked from commit 4fdfe88c693f52a717efa94ca0e721fb2e9ffaf3)
Reviewed-by: Sadrul Chowdhury <>
Cr-Commit-Position: refs/branch-heads/3683@{#151}
Cr-Branched-From: e51029943e0a38dd794b73caaf6373d5496ae783-refs/heads/master@{#625896}
5 files changed