Surface synchronization: Improve guttering

SurfaceManager::GetLatestInFlightSurface enforced overly strict ownership
in order to embed a newer surface. It waited until a surface was assigned
an owner before it deemed it safe to embed that surface at aggregation
time. After a brief discussion with security, it seems like maybe
we don't need a new nonce and we don't need to validate ownership with
every surface creation. Thus, we can avoid waiting for assigning ownership
and can embed a surface at aggregation time as a fallback sooner.

This results in less gutter.

Bug: 672962
Cq-Include-Trybots: master.tryserver.chromium.android:android_optional_gpu_tests_rel
Change-Id: I3bdfd4656ee2ce61e361f7c62539ef049d261382
Reviewed-on: https://chromium-review.googlesource.com/938645
Commit-Queue: Fady Samuel <fsamuel@chromium.org>
Reviewed-by: Saman Sami <samans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#539660}
3 files changed