Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(83)

Issue 10852009: Clarify ownership of GpuVideoDecodeAcceleratorHost and avoid crash on context loss. (Closed)

Created:
8 years, 4 months ago by Ami GONE FROM CHROMIUM
Modified:
8 years, 4 months ago
Reviewers:
piman
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, apatrick_chromium, feature-media-reviews_chromium.org, Pawel Osciak
Visibility:
Public.

Description

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 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=149985

Patch Set 1 : . #

Total comments: 2

Patch Set 2 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+36 lines, -21 lines) Patch
M content/common/gpu/client/command_buffer_proxy_impl.h View 2 chunks +3 lines, -3 lines 0 comments Download
M content/common/gpu/client/command_buffer_proxy_impl.cc View 2 chunks +3 lines, -2 lines 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.h View 2 chunks +3 lines, -1 line 0 comments Download
M content/common/gpu/client/gpu_video_decode_accelerator_host.cc View 1 chunk +6 lines, -2 lines 0 comments Download
M media/filters/gpu_video_decoder.h View 1 chunk +4 lines, -0 lines 0 comments Download
M media/filters/gpu_video_decoder.cc View 1 3 chunks +17 lines, -13 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Ami GONE FROM CHROMIUM
piman: please review posciak: FYI
8 years, 4 months ago (2012-08-03 20:46:15 UTC) #1
piman
lgtm https://chromiumcodereview.appspot.com/10852009/diff/2001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://chromiumcodereview.appspot.com/10852009/diff/2001/media/filters/gpu_video_decoder.cc#newcode167 media/filters/gpu_video_decoder.cc:167: // called, not just posted. We can't simply ...
8 years, 4 months ago (2012-08-03 21:09:02 UTC) #2
Ami GONE FROM CHROMIUM
Thanks for the quick review. https://chromiumcodereview.appspot.com/10852009/diff/2001/media/filters/gpu_video_decoder.cc File media/filters/gpu_video_decoder.cc (right): https://chromiumcodereview.appspot.com/10852009/diff/2001/media/filters/gpu_video_decoder.cc#newcode167 media/filters/gpu_video_decoder.cc:167: // called, not just ...
8 years, 4 months ago (2012-08-03 21:53:15 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/10852009/7001
8 years, 4 months ago (2012-08-03 21:53:56 UTC) #4
commit-bot: I haz the power
8 years, 4 months ago (2012-08-04 00:31:57 UTC) #5
Change committed as 149985

Powered by Google App Engine
This is Rietveld 408576698