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

Issue 2173593002: [Chromecast] Limit number of concurrent audio and video decoders (Closed)

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

Description

[Chromecast] Limit number of concurrent audio and video decoders Currently, an app can exceed the number of decoders that vendor backends support (for example, by creating multiple video elements), leading to unpredictable behaviour including crashes. While most apps don't do this, we have seen some problems crop up e.g. when ads are injected into an existing page. For now, restrict to 1 video decoder and 2 audio decoders. BUG=internal b/26910920 Committed: https://crrev.com/54e165ed71447f2d66ffbbc29f69569f9b332084 Cr-Commit-Position: refs/heads/master@{#407215}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Increment/decrement API #

Total comments: 10

Patch Set 3 : use enum for decoder type #

Unified diffs Side-by-side diffs Delta from patch set Stats (+51 lines, -0 lines) Patch
M chromecast/media/cma/backend/media_pipeline_backend_manager.h View 1 2 3 chunks +10 lines, -0 lines 0 comments Download
M chromecast/media/cma/backend/media_pipeline_backend_manager.cc View 1 2 2 chunks +23 lines, -0 lines 0 comments Download
M chromecast/media/cma/backend/media_pipeline_backend_wrapper.h View 1 1 chunk +1 line, -0 lines 0 comments Download
M chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc View 1 2 4 chunks +17 lines, -0 lines 0 comments Download

Messages

Total messages: 18 (6 generated)
halliwell
4 years, 5 months ago (2016-07-22 00:22:10 UTC) #3
alokp
https://codereview.chromium.org/2173593002/diff/1/chromecast/media/cma/backend/media_pipeline_backend_manager.cc File chromecast/media/cma/backend/media_pipeline_backend_manager.cc (right): https://codereview.chromium.org/2173593002/diff/1/chromecast/media/cma/backend/media_pipeline_backend_manager.cc#newcode46 chromecast/media/cma/backend/media_pipeline_backend_manager.cc:46: bool MediaPipelineBackendManager::CanCreateAudioDecoder( The function name is a bit weird. ...
4 years, 5 months ago (2016-07-22 04:59:46 UTC) #4
halliwell
https://codereview.chromium.org/2173593002/diff/1/chromecast/media/cma/backend/media_pipeline_backend_manager.cc File chromecast/media/cma/backend/media_pipeline_backend_manager.cc (right): https://codereview.chromium.org/2173593002/diff/1/chromecast/media/cma/backend/media_pipeline_backend_manager.cc#newcode46 chromecast/media/cma/backend/media_pipeline_backend_manager.cc:46: bool MediaPipelineBackendManager::CanCreateAudioDecoder( On 2016/07/22 04:59:46, alokp wrote: > The ...
4 years, 5 months ago (2016-07-22 16:34:51 UTC) #5
alokp
lgtm https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc File chromecast/media/cma/backend/media_pipeline_backend_manager.cc (right): https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc#newcode46 chromecast/media/cma/backend/media_pipeline_backend_manager.cc:46: bool MediaPipelineBackendManager::IncrementAudioDecoderCount() { nit: You may want to ...
4 years, 5 months ago (2016-07-22 16:46:44 UTC) #6
kmackay
https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc File chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc (right): https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc#newcode34 chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc:34: backend_manager_->DecrementVideoDecoderCount(); Can't we have multiple video decoders (for DolbyVision?)
4 years, 5 months ago (2016-07-22 16:50:08 UTC) #7
kmackay
https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc File chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc (right): https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc#newcode34 chromecast/media/cma/backend/media_pipeline_backend_wrapper.cc:34: backend_manager_->DecrementVideoDecoderCount(); On 2016/07/22 16:50:07, kmackay wrote: > Can't we ...
4 years, 5 months ago (2016-07-22 16:53:08 UTC) #8
halliwell
https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc File chromecast/media/cma/backend/media_pipeline_backend_manager.cc (right): https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc#newcode46 chromecast/media/cma/backend/media_pipeline_backend_manager.cc:46: bool MediaPipelineBackendManager::IncrementAudioDecoderCount() { On 2016/07/22 16:46:44, alokp wrote: > ...
4 years, 5 months ago (2016-07-22 17:16:30 UTC) #9
kmackay
On 2016/07/22 17:16:30, halliwell wrote: > https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc > File chromecast/media/cma/backend/media_pipeline_backend_manager.cc (right): > > https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc#newcode46 > ...
4 years, 5 months ago (2016-07-22 17:20:49 UTC) #10
halliwell
On 2016/07/22 17:20:49, kmackay wrote: > On 2016/07/22 17:16:30, halliwell wrote: > > > https://codereview.chromium.org/2173593002/diff/20001/chromecast/media/cma/backend/media_pipeline_backend_manager.cc ...
4 years, 5 months ago (2016-07-22 17:56:09 UTC) #11
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/2173593002/40001
4 years, 5 months ago (2016-07-22 17:56:54 UTC) #14
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 5 months ago (2016-07-22 18:40:06 UTC) #16
commit-bot: I haz the power
4 years, 5 months ago (2016-07-22 18:41:44 UTC) #18
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/54e165ed71447f2d66ffbbc29f69569f9b332084
Cr-Commit-Position: refs/heads/master@{#407215}

Powered by Google App Engine
This is Rietveld 408576698