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

Issue 448063003: media: Fix not-thread-safe access to variables in android media code. (Closed)

Created:
6 years, 4 months ago by dshwang
Modified:
6 years, 4 months ago
Reviewers:
qinmin, no sievers
CC:
chromium-reviews, posciak+watch_chromium.org, avayvod+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, wjia+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

media: Fix not-thread-safe access to variables in android media code. There are 3 big changes; 1. Initialize and bind StreamTextureProxy to the impl thread when the main thread is blocked. 2. Set stream texture size when the video size is changed, instead of adhoc in rendering code. 3. Add lots of thread checks. BUG=N/A Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=289315

Patch Set 1 #

Total comments: 3

Patch Set 2 : Set the differed size when establishing surface #

Total comments: 1

Patch Set 3 : fix errata on comment #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -24 lines) Patch
M content/renderer/media/android/webmediaplayer_android.cc View 1 2 26 chunks +52 lines, -24 lines 0 comments Download

Messages

Total messages: 19 (0 generated)
dshwang
qinmin@, sievers@, could you review? IMO this CL can fix not-reproducible crash bug in android.
6 years, 4 months ago (2014-08-07 07:10:55 UTC) #1
qinmin
https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode1145 content/renderer/media/android/webmediaplayer_android.cc:1145: stream_texture_proxy_->BindToCurrentThread(stream_id_); I don't think this is correct, the stream_texture_proxy ...
6 years, 4 months ago (2014-08-08 22:02:58 UTC) #2
dshwang
https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode1145 content/renderer/media/android/webmediaplayer_android.cc:1145: stream_texture_proxy_->BindToCurrentThread(stream_id_); On 2014/08/08 22:02:58, qinmin wrote: > I don't ...
6 years, 4 months ago (2014-08-09 06:01:26 UTC) #3
qinmin
lgtm https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc#newcode1145 content/renderer/media/android/webmediaplayer_android.cc:1145: stream_texture_proxy_->BindToCurrentThread(stream_id_); i see, i missed the non-null check ...
6 years, 4 months ago (2014-08-10 18:33:51 UTC) #4
dshwang
On 2014/08/10 18:33:51, qinmin wrote: > lgtm > > https://codereview.chromium.org/448063003/diff/1/content/renderer/media/android/webmediaplayer_android.cc > File content/renderer/media/android/webmediaplayer_android.cc (right): > ...
6 years, 4 months ago (2014-08-11 08:03:45 UTC) #5
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 4 months ago (2014-08-11 08:07:40 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/448063003/1
6 years, 4 months ago (2014-08-11 08:08:37 UTC) #7
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_gpu on tryserver.chromium.gpu ...
6 years, 4 months ago (2014-08-11 08:16:48 UTC) #8
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-11 08:17:59 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: mac_gpu on tryserver.chromium.gpu (http://build.chromium.org/p/tryserver.chromium.gpu/builders/mac_gpu/builds/39868) ios_dbg_simulator on tryserver.chromium.mac (http://build.chromium.org/p/tryserver.chromium.mac/builders/ios_dbg_simulator/builds/4330) ios_rel_device ...
6 years, 4 months ago (2014-08-11 08:18:00 UTC) #10
dshwang
https://codereview.chromium.org/448063003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc File content/renderer/media/android/webmediaplayer_android.cc (right): https://codereview.chromium.org/448063003/diff/20001/content/renderer/media/android/webmediaplayer_android.cc#newcode813 content/renderer/media/android/webmediaplayer_android.cc:813: if (!is_remote_ && cached_stream_texture_size_ != natural_size_) { qinmin@, could ...
6 years, 4 months ago (2014-08-11 08:43:17 UTC) #11
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 4 months ago (2014-08-13 12:42:40 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/448063003/60001
6 years, 4 months ago (2014-08-13 12:44:00 UTC) #13
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: linux_chromium_gn_rel on tryserver.chromium.linux ...
6 years, 4 months ago (2014-08-13 13:54:48 UTC) #14
commit-bot: I haz the power
The CQ bit was unchecked by commit-bot@chromium.org
6 years, 4 months ago (2014-08-13 13:58:14 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/5491)
6 years, 4 months ago (2014-08-13 13:58:16 UTC) #16
dshwang
The CQ bit was checked by dongseong.hwang@intel.com
6 years, 4 months ago (2014-08-13 16:17:00 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dongseong.hwang@intel.com/448063003/60001
6 years, 4 months ago (2014-08-13 16:18:15 UTC) #18
commit-bot: I haz the power
6 years, 4 months ago (2014-08-13 16:29:12 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (60001) as 289315

Powered by Google App Engine
This is Rietveld 408576698