Add TaskObserver for tracking when flush() is needed

After GLInProcessContext got split in a dedicated GPU thread (r19522006),
Show() is no longer sufficient in guaranteeing that the flush() task will be
performed in the required order. This patches introduces a new way for flushing
Wayland via TaskObserver.
patches: Remove one

Show() is not needed anymore.