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

Issue 174403002: Cast: Don't create threads for each CastSessionDelegate (Closed)

Created:
6 years, 10 months ago by Alpha Left Google
Modified:
6 years, 10 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Cast: Don't create threads for each CastSessionDelegate We shouldn't create threads for each instance of CastSessionDelegate. Cast encoding threads are now managed by a singleton object of CastThreads. Threads used by Cast are now started and stopped accordingly when there are CastSessionDelegate objects. Tested with browser_tests --gtest_filter=CastStreaming* BUG=317006 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=252810

Patch Set 1 #

Patch Set 2 : missing files #

Total comments: 7

Patch Set 3 : #

Total comments: 1

Patch Set 4 : SingleThreadTaskRunner #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -15 lines) Patch
M chrome/chrome_renderer.gypi View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.h View 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/renderer/media/cast_session_delegate.cc View 1 2 4 chunks +8 lines, -8 lines 0 comments Download
A chrome/renderer/media/cast_threads.h View 1 2 3 1 chunk +37 lines, -0 lines 0 comments Download
A chrome/renderer/media/cast_threads.cc View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
Alpha Left Google
6 years, 10 months ago (2014-02-20 21:56:15 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_session_delegate.cc File chrome/renderer/media/cast_session_delegate.cc (right): https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_session_delegate.cc#newcode34 chrome/renderer/media/cast_session_delegate.cc:34: g_cast_threads.Get().IncrementUsage(); do we ever create objects but not initialize ...
6 years, 10 months ago (2014-02-21 16:25:48 UTC) #2
Alpha Left Google
On 2014/02/21 16:25:48, scherkus wrote: > https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_session_delegate.cc > File chrome/renderer/media/cast_session_delegate.cc (right): > > https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_session_delegate.cc#newcode34 > ...
6 years, 10 months ago (2014-02-21 20:40:55 UTC) #3
scherkus (not reviewing)
https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_threads.h File chrome/renderer/media/cast_threads.h (right): https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_threads.h#newcode22 chrome/renderer/media/cast_threads.h:22: CastThreads(); these can be made private and have something ...
6 years, 10 months ago (2014-02-21 22:01:03 UTC) #4
Alpha Left Google
https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_threads.h File chrome/renderer/media/cast_threads.h (right): https://codereview.chromium.org/174403002/diff/2/chrome/renderer/media/cast_threads.h#newcode22 chrome/renderer/media/cast_threads.h:22: CastThreads(); On 2014/02/21 22:01:03, scherkus wrote: > these can ...
6 years, 10 months ago (2014-02-22 01:04:33 UTC) #5
scherkus (not reviewing)
lgtm w/ suggestion https://codereview.chromium.org/174403002/diff/100001/chrome/renderer/media/cast_threads.h File chrome/renderer/media/cast_threads.h (right): https://codereview.chromium.org/174403002/diff/100001/chrome/renderer/media/cast_threads.h#newcode21 chrome/renderer/media/cast_threads.h:21: scoped_refptr<base::MessageLoopProxy> GetAudioEncodeMessageLoopProxy(); should these be base::SingleThreadTaskRunners ...
6 years, 10 months ago (2014-02-22 01:08:27 UTC) #6
scherkus (not reviewing)
lgtm w/ suggestion
6 years, 10 months ago (2014-02-22 01:08:27 UTC) #7
Alpha Left Google
The CQ bit was checked by hclam@chromium.org
6 years, 10 months ago (2014-02-22 01:13:10 UTC) #8
Alpha Left Google
On 2014/02/22 01:08:27, scherkus wrote: > lgtm w/ suggestion Done. Changed to SingleThreadTaskRunner.
6 years, 10 months ago (2014-02-22 01:13:23 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/174403002/140002
6 years, 10 months ago (2014-02-22 01:14:57 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/174403002/140002
6 years, 10 months ago (2014-02-22 01:37:50 UTC) #11
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 10 months ago (2014-02-22 05:33:26 UTC) #12
commit-bot: I haz the power
Retried try job too often on win_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=win_rel&number=268432
6 years, 10 months ago (2014-02-22 05:33:27 UTC) #13
Alpha Left Google
The CQ bit was checked by hclam@chromium.org
6 years, 10 months ago (2014-02-22 10:19:14 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/hclam@chromium.org/174403002/140002
6 years, 10 months ago (2014-02-22 10:20:06 UTC) #15
commit-bot: I haz the power
6 years, 10 months ago (2014-02-22 18:56:09 UTC) #16
Message was sent while issue was closed.
Change committed as 252810

Powered by Google App Engine
This is Rietveld 408576698