Cherry-pick: cc: Update Main RendererCapabilities on DeferredInitialize

Clean cherry-pick of with additional modifications.

Original change depends on and modified to remove this

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