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

Issue 2273033003: Invalidate VideoRendererImpl's weak ptrs before resetting the decoder (Closed)

Created:
4 years, 4 months ago by watk
Modified:
4 years, 4 months ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, posciak+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Invalidate VideoRendererImpl's weak ptrs before resetting the decoder Previously VideoRendererImpl waited for the VideoFrameStream::Reset() to complete before invalidating its frame callback weak pointers, which meant that it could receive frames that it didn't want between Flush() and OnVideoFrameStreamResetDone(). For simplicity, now the weak pointers are invalidated at the same time that Reset() is called, so it's guaranteed that no frames will be received after Flush(). Also included in this change is reordering the deletion of the video frame queue and resetting of the VideoFrameStream to save VDAs doing wasted work. BUG=640800 Committed: https://crrev.com/4889f1867a957f6dd401ce885e6c56ff864b1a4c Cr-Commit-Position: refs/heads/master@{#414285}

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+10 lines, -20 lines) Patch
M media/renderers/video_renderer_impl.cc View 5 chunks +10 lines, -20 lines 0 comments Download

Messages

Total messages: 18 (9 generated)
watk
4 years, 4 months ago (2016-08-24 22:27:58 UTC) #2
DaleCurtis
lgtm; if it really does improve things we might see seek times improve, so it ...
4 years, 4 months ago (2016-08-24 22:33:27 UTC) #5
DaleCurtis
(See seek times improve in telemetry that is)
4 years, 4 months ago (2016-08-24 22:33:38 UTC) #6
watk
On 2016/08/24 22:33:38, DaleCurtis wrote: > (See seek times improve in telemetry that is) Thanks, ...
4 years, 4 months ago (2016-08-24 22:54:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2273033003/1
4 years, 4 months ago (2016-08-24 22:55:46 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_daisy_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_daisy_chromium_compile_only_ng/builds/189371) linux_chromium_clobber_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 4 months ago (2016-08-25 01:00:04 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2273033003/1
4 years, 4 months ago (2016-08-25 01:16:28 UTC) #14
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 4 months ago (2016-08-25 03:16:35 UTC) #16
commit-bot: I haz the power
4 years, 4 months ago (2016-08-25 03:20:53 UTC) #18
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/4889f1867a957f6dd401ce885e6c56ff864b1a4c
Cr-Commit-Position: refs/heads/master@{#414285}

Powered by Google App Engine
This is Rietveld 408576698