Cherry-pick: Move detachGLFunctor call before hardware teardown.

By not detaching the GL functor until after the teardown, we ran the
risk of stray draw calls occurring that could potentially reinitialize
the hardware renderer, causing the SharedRendererState destructor to
DCHECK.

BUG=

Review URL: https://codereview.chromium.org/920083002

Cr-Commit-Position: refs/heads/master@{#316222}

Bug: 19370054
Change-Id: I38061e7e690a9738e7296f6ad2948caceb3af7e9
1 file changed