This has grown organically and has been causing trouble with unified begin frame, and less recently cause all sorts of pain with thumbnailing.
Phase 1 is to clean up this relationship.
Phase 2 may or may not be a good idea, but is:
We should also consider having a non-1:1 relationship between gfx::AcceleratedWidget and ui::AcceleratedWidgetMac.
Instead, we should consider having a 1:1 relationship between RenderWidgetHostViewMac and ui::AcceleratedWidgetMac, and have the gfx::AcceleratedWidgetMac <-> ui::AcceleratedWidget link match the RenderWidgetHostViewMac <-> ui::Compositor link. To make this work we would want to ensure that we get a new CAContext when we recycled compositors.
Comment 1 by bugdroid1@chromium.org
, Jun 28 2016