Cherry-pick: cc: Update Main RendererCapabilities on DeferredInitialize

Clean cherry-pick of crrev.com/r251853 with additional modifications.

Original change depends on crrev.com/r246957 and modified to remove this
dependency.

Original description:

Also update caps on ReleaseGL. The updated RendererCapabilities
are posted back to the main thread. Main thread layers will
receive OnOutputSurfaceCreated (should be renamed to
OnRendererCapabilitiesChanged) when this happens. Note this
is also called on first renderer initialization.

BUG: 13328348

Change-Id: I42a71879690d52a8e237bd86a1f7cfd99c851687
8 files changed