DescriptionLeak instead of deadlock if executeHardwareAction fails
If executeHardwareAction fails in onDetachedFromWindow, then
HardwareRenderer destructor will deadlock later when being destroyed on
UI thread. In this case, run the destructor on UI without deadlock but
leak GL resources instead.
Achieve this by running always running release gl even on UI thread, and
making the allow_gl global to be a true thread local, which can be set
to true on UI thread.
BUG=
TBR=benm
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=266429
Patch Set 1 #
Messages
Total messages: 12 (0 generated)
|