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

Issue 2668813002: Remove LazyInstance usage from media/ (Closed)

Created:
3 years, 10 months ago by DaleCurtis
Modified:
3 years, 10 months ago
CC:
Aaron Boodman, abarth-chromium, alokp+watch_chromium.org, avayvod+watch_chromium.org, chfremer+watch_chromium.org, chromium-reviews, darin (slow to review), darin-cc_chromium.org, feature-media-reviews_chromium.org, imcheng+watch_chromium.org, isheriff+watch_chromium.org, jam, jasonroberts+watch_google.com, mcasas+watch+vc_chromium.org, miu+watch_chromium.org, mlamouri+watch-media_chromium.org, mlamouri+watch-content_chromium.org, piman+watch_chromium.org, posciak+watch_chromium.org, qsr+mojo_chromium.org, toyoshim+midi_chromium.org, viettrungluu+watch_chromium.org, xjz+watch_chromium.org, yzshen+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Remove LazyInstance usage from media/ We have thread safe statics now, there's no reason to use lazy instance anymore. BUG=686866 TEST=compiles. CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_optional_gpu_tests_rel;master.tryserver.chromium.mac:mac_optional_gpu_tests_rel;master.tryserver.chromium.win:win_optional_gpu_tests_rel Review-Url: https://codereview.chromium.org/2668813002 Cr-Commit-Position: refs/heads/master@{#449830} Committed: https://chromium.googlesource.com/chromium/src/+/c3af50906850b5d9c9439edd80d996e236996c4d

Patch Set 1 #

Total comments: 40

Patch Set 2 : Comments. #

Total comments: 3

Patch Set 3 : Add scoped leak annotation for external clear key loadlibrary. #

Patch Set 4 : Moar CrOS fixes. #

Total comments: 2

Patch Set 5 : Add comment. #

Patch Set 6 : Fix new LazyInstance. Add PRESUBMIT. #

Total comments: 2

Patch Set 7 : Fix presubmit comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+321 lines, -401 lines) Patch
M content/browser/media/capture/audio_mirroring_manager.cc View 1 chunk +2 lines, -9 lines 0 comments Download
M content/browser/media/cdm_registry_impl.h View 2 chunks +1 line, -2 lines 0 comments Download
M content/browser/media/cdm_registry_impl.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/media/media_internals.h View 2 chunks +0 lines, -2 lines 0 comments Download
M content/browser/media/media_internals.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M content/browser/media/media_web_contents_observer.cc View 4 chunks +6 lines, -5 lines 0 comments Download
M content/renderer/media/recorder/video_track_recorder.cc View 1 2 3 4 3 chunks +6 lines, -4 lines 0 comments Download
M content/renderer/media/render_media_client.h View 3 chunks +3 lines, -9 lines 0 comments Download
M content/renderer/media/render_media_client.cc View 3 chunks +5 lines, -12 lines 0 comments Download
M content/renderer/media/render_media_client_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/media/rtc_peer_connection_handler.cc View 1 5 chunks +9 lines, -8 lines 0 comments Download
M content/renderer/media/webrtc/rtc_stats.cc View 3 chunks +6 lines, -5 lines 0 comments Download
M media/PRESUBMIT.py View 1 2 3 4 5 6 1 chunk +19 lines, -0 lines 0 comments Download
M media/audio/audio_manager.cc View 1 3 chunks +11 lines, -11 lines 0 comments Download
M media/audio/simple_sources.cc View 1 4 chunks +7 lines, -5 lines 0 comments Download
M media/base/android/media_drm_bridge.cc View 1 2 3 4 5 chunks +7 lines, -6 lines 0 comments Download
M media/base/android/media_service_throttler.h View 2 chunks +0 lines, -2 lines 0 comments Download
M media/base/android/media_service_throttler.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M media/base/key_systems.cc View 1 2 3 4 3 chunks +6 lines, -12 lines 0 comments Download
M media/base/media.cc View 1 2 3 4 3 chunks +22 lines, -19 lines 0 comments Download
M media/base/mime_util.cc View 1 chunk +9 lines, -10 lines 0 comments Download
M media/base/win/mf_initializer.h View 1 chunk +1 line, -2 lines 0 comments Download
M media/base/win/mf_initializer.cc View 1 1 chunk +3 lines, -26 lines 0 comments Download
M media/base/yuv_convert.cc View 4 chunks +17 lines, -27 lines 0 comments Download
M media/capture/video/linux/video_capture_device_chromeos.cc View 3 chunks +8 lines, -11 lines 0 comments Download
M media/capture/video/linux/video_capture_device_factory_linux.cc View 3 chunks +2 lines, -10 lines 0 comments Download
M media/cast/test/utility/udp_proxy_main.cc View 1 6 chunks +30 lines, -24 lines 0 comments Download
M media/cdm/external_clear_key_test_helper.cc View 1 2 3 4 2 chunks +9 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_glue.cc View 1 2 chunks +6 lines, -29 lines 0 comments Download
M media/filters/vpx_video_decoder.cc View 5 chunks +7 lines, -8 lines 0 comments Download
M media/gpu/android_video_decode_accelerator.cc View 1 2 3 4 8 chunks +12 lines, -12 lines 0 comments Download
M media/gpu/avda_codec_allocator.h View 2 chunks +0 lines, -2 lines 0 comments Download
M media/gpu/avda_codec_allocator.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M media/gpu/tegra_v4l2_device.cc View 1 3 chunks +29 lines, -40 lines 0 comments Download
M media/gpu/vaapi_wrapper.h View 1 2 5 chunks +4 lines, -10 lines 0 comments Download
M media/gpu/vaapi_wrapper.cc View 1 2 3 11 chunks +25 lines, -30 lines 0 comments Download
M media/midi/midi_manager_alsa.cc View 1 2 3 4 5 6 chunks +22 lines, -15 lines 0 comments Download
M media/midi/midi_manager_winrt.cc View 1 2 3 4 8 chunks +10 lines, -10 lines 0 comments Download
M media/midi/usb_midi_device_factory_android.cc View 1 chunk +0 lines, -1 line 0 comments Download
M media/mojo/services/mojo_cdm_service.cc View 6 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 47 (23 generated)
DaleCurtis
3 years, 10 months ago (2017-01-31 20:52:00 UTC) #3
scottmg
https://codereview.chromium.org/2668813002/diff/1/media/base/key_systems.cc File media/base/key_systems.cc (right): https://codereview.chromium.org/2668813002/diff/1/media/base/key_systems.cc#newcode265 media/base/key_systems.cc:265: key_systems->UpdateIfNeeded(); Are multiple calls to UpdateIfNeeded() a problem? If ...
3 years, 10 months ago (2017-01-31 21:10:34 UTC) #6
scottmg
lgtm https://codereview.chromium.org/2668813002/diff/1/media/gpu/vaapi_wrapper.cc File media/gpu/vaapi_wrapper.cc (right): https://codereview.chromium.org/2668813002/diff/1/media/gpu/vaapi_wrapper.cc#newcode196 media/gpu/vaapi_wrapper.cc:196: if (!profile_infos_->IsProfileSupported(mode, va_profile)) { Oh, actually, I think ...
3 years, 10 months ago (2017-01-31 21:14:51 UTC) #9
Mark Mentovai
This is great, Dale! Thanks for taking care of this in your corner of the ...
3 years, 10 months ago (2017-01-31 21:33:56 UTC) #11
DaleCurtis
Thanks for review. I think I got them all. Are we waiting on landing these ...
3 years, 10 months ago (2017-01-31 22:04:34 UTC) #12
Mark Mentovai
LGTM! https://codereview.chromium.org/2668813002/diff/20001/media/filters/ffmpeg_glue.cc File media/filters/ffmpeg_glue.cc (right): https://codereview.chromium.org/2668813002/diff/20001/media/filters/ffmpeg_glue.cc#newcode100 media/filters/ffmpeg_glue.cc:100: CHECK(initialized); Can you get away with making this ...
3 years, 10 months ago (2017-01-31 22:16:00 UTC) #15
miu
audio_mirroring_manager.cc and udp_proxy_main.cc lgtm https://codereview.chromium.org/2668813002/diff/20001/content/browser/media/capture/audio_mirroring_manager.cc File content/browser/media/capture/audio_mirroring_manager.cc (right): https://codereview.chromium.org/2668813002/diff/20001/content/browser/media/capture/audio_mirroring_manager.cc#newcode16 content/browser/media/capture/audio_mirroring_manager.cc:16: static AudioMirroringManager* manager = new ...
3 years, 10 months ago (2017-01-31 22:41:50 UTC) #19
Mark Mentovai
miu wrote: > audio_mirroring_manager.cc and udp_proxy_main.cc lgtm > > https://codereview.chromium.org/2668813002/diff/20001/content/browser/media/capture/audio_mirroring_manager.cc > File content/browser/media/capture/audio_mirroring_manager.cc (right): > ...
3 years, 10 months ago (2017-01-31 23:01:34 UTC) #20
DaleCurtis
Hmm, getting a bunch of leaks detected when unloading the cdm library; for some reason ...
3 years, 10 months ago (2017-02-01 00:14:18 UTC) #21
DaleCurtis
On 2017/02/01 at 00:14:18, DaleCurtis wrote: > Hmm, getting a bunch of leaks detected when ...
3 years, 10 months ago (2017-02-01 00:14:32 UTC) #22
DaleCurtis
On 2017/02/01 at 00:14:32, DaleCurtis wrote: > On 2017/02/01 at 00:14:18, DaleCurtis wrote: > > ...
3 years, 10 months ago (2017-02-01 00:30:36 UTC) #23
DaleCurtis
+jrummell since these look very similar to http://crbug.com/569736 and might just need some updated suppressions.
3 years, 10 months ago (2017-02-01 00:38:48 UTC) #25
DaleCurtis
Fixed by adding ANNOTATE_SCOPED_MEMORY_LEAK to ExternalClearKeyTestHelper(). It looks like lsan is capturing all allocations created ...
3 years, 10 months ago (2017-02-01 01:14:32 UTC) #27
Mark Mentovai
Oh, you need to be able to unload libraries?
3 years, 10 months ago (2017-02-01 01:15:49 UTC) #28
DaleCurtis
On 2017/02/01 at 01:15:49, mark wrote: > Oh, you need to be able to unload ...
3 years, 10 months ago (2017-02-01 01:20:29 UTC) #31
jrummell
On 2017/02/01 01:20:29, DaleCurtis wrote: > On 2017/02/01 at 01:15:49, mark wrote: > > Oh, ...
3 years, 10 months ago (2017-02-02 02:07:08 UTC) #34
DaleCurtis
s/glider/kcc/ for sign-off on the suppression in media/cdm/external_clear_key_test_helper.cc for the unload library call used in ...
3 years, 10 months ago (2017-02-07 01:14:53 UTC) #36
kcc2
https://codereview.chromium.org/2668813002/diff/60001/media/cdm/external_clear_key_test_helper.cc File media/cdm/external_clear_key_test_helper.cc (right): https://codereview.chromium.org/2668813002/diff/60001/media/cdm/external_clear_key_test_helper.cc#newcode56 media/cdm/external_clear_key_test_helper.cc:56: ANNOTATE_SCOPED_MEMORY_LEAK; This deserves a comment. A reader looking at ...
3 years, 10 months ago (2017-02-10 22:50:37 UTC) #37
DaleCurtis
https://codereview.chromium.org/2668813002/diff/60001/media/cdm/external_clear_key_test_helper.cc File media/cdm/external_clear_key_test_helper.cc (right): https://codereview.chromium.org/2668813002/diff/60001/media/cdm/external_clear_key_test_helper.cc#newcode56 media/cdm/external_clear_key_test_helper.cc:56: ANNOTATE_SCOPED_MEMORY_LEAK; On 2017/02/10 at 22:50:37, kcc2 wrote: > This ...
3 years, 10 months ago (2017-02-10 23:28:24 UTC) #38
kcc2
lgtm LGTM for media/cdm/external_clear_key_test_helper.cc
3 years, 10 months ago (2017-02-10 23:30:29 UTC) #39
jrummell
media lgtm https://codereview.chromium.org/2668813002/diff/100001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://codereview.chromium.org/2668813002/diff/100001/media/PRESUBMIT.py#newcode171 media/PRESUBMIT.py:171: """Check that base::Time and derived classes are ...
3 years, 10 months ago (2017-02-11 00:10:55 UTC) #40
DaleCurtis
Thanks for review! https://codereview.chromium.org/2668813002/diff/100001/media/PRESUBMIT.py File media/PRESUBMIT.py (right): https://codereview.chromium.org/2668813002/diff/100001/media/PRESUBMIT.py#newcode171 media/PRESUBMIT.py:171: """Check that base::Time and derived classes ...
3 years, 10 months ago (2017-02-11 00:13:36 UTC) #42
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/2668813002/120001
3 years, 10 months ago (2017-02-11 00:14:13 UTC) #44
commit-bot: I haz the power
3 years, 10 months ago (2017-02-11 02:09:01 UTC) #47
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c3af50906850b5d9c9439edd80d9...

Powered by Google App Engine
This is Rietveld 408576698