Clarify ownership of GpuVideoDecodeAcceleratorHost and avoid crash on context loss.
GpuVideoDecoder owns GpuVideoDecodeAcceleratorHost; it was a bug that ~CommandBufferProxyImpl() called GpuVideoDecodeAcceleratorHost::Destroy() (since the latter deletes |this|). This bug was uncovered due to an unrelated GPU-process crashing bug, which triggered context loss and the subsequent stack in the linked bug. With this change, killing the GPU process mid-playback fires a JS error on the <video> tag (correctly), but the renderer keeps on just fine. BUG=140138 Review URL: https://chromiumcodereview.appspot.com/10852009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@149985 0039d316-1c4b-4281-b951-d872f2087c98
Showing
Please register or sign in to comment