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

Issue 1149203002: Extract re-usable InitializeMediaFoundation() (Closed)

Created:
5 years, 7 months ago by wdzierzanowski
Modified:
5 years, 7 months ago
CC:
chromium-reviews, posciak+watch_chromium.org, jam, mcasas+watch_chromium.org, feature-media-reviews_chromium.org, darin-cc_chromium.org, piman+watch_chromium.org, wjia+watch_chromium.org, ananta
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Extract re-usable InitializeMediaFoundation() Allow media::InitializeMediaFoundation() to be used by any Media Foundation client code. This benefits existing Chromium code as well as any Chromium-based browser that adds its own code calling out to Media Foundation. There are two side effects for DXVAVideoDecodeAccelerator: - MFStartup() and MFShutdown() are now called once during the lifetime of the GPU process rather than per each accelerator instance. - MFStartup() is now called with the MFSTARTUP_LITE flag, which according to MSDN doesn't initialize the sockets library. TEST=media_unittests Committed: https://crrev.com/c0ab75a86447bc23d45ff7086b2375e2cd83c205 Cr-Commit-Position: refs/heads/master@{#331446} Committed: https://crrev.com/5105004066c9a728764a1e60ede6f60a44e3ede5 Cr-Commit-Position: refs/heads/master@{#331623}

Patch Set 1 #

Patch Set 2 : No need to ever mutate member #

Total comments: 4

Patch Set 3 : Update GN files, Ensure...Initialized -> Initialize... #

Patch Set 4 : Fix linkage of InitializeMediaFoundation() in GN builds #

Unified diffs Side-by-side diffs Delta from patch set Stats (+84 lines, -20 lines) Patch
M content/common/gpu/media/dxva_video_decode_accelerator.cc View 1 2 3 chunks +2 lines, -4 lines 0 comments Download
M media/BUILD.gn View 1 2 1 chunk +1 line, -0 lines 0 comments Download
A media/base/win/BUILD.gn View 1 2 3 1 chunk +18 lines, -0 lines 0 comments Download
A media/base/win/mf_initializer.h View 1 2 1 chunk +18 lines, -0 lines 0 comments Download
A media/base/win/mf_initializer.cc View 1 2 1 chunk +41 lines, -0 lines 0 comments Download
M media/media.gyp View 1 chunk +2 lines, -0 lines 0 comments Download
M media/video/capture/win/video_capture_device_factory_win.cc View 1 2 5 chunks +2 lines, -16 lines 0 comments Download

Messages

Total messages: 21 (4 generated)
wdzierzanowski
PTAL
5 years, 7 months ago (2015-05-21 20:41:35 UTC) #2
sandersd (OOO until July 31)
https://codereview.chromium.org/1149203002/diff/20001/media/media.gyp File media/media.gyp (right): https://codereview.chromium.org/1149203002/diff/20001/media/media.gyp#newcode407 media/media.gyp:407: 'base/win/mf_initializer.cc', This should be only built on Windows. Update ...
5 years, 7 months ago (2015-05-22 19:14:55 UTC) #3
sandersd (OOO until July 31)
https://codereview.chromium.org/1149203002/diff/20001/media/base/win/mf_initializer.h File media/base/win/mf_initializer.h (right): https://codereview.chromium.org/1149203002/diff/20001/media/base/win/mf_initializer.h#newcode14 media/base/win/mf_initializer.h:14: MEDIA_EXPORT void EnsureMediaFoundationInitialized(); I note that for FFmpeg we ...
5 years, 7 months ago (2015-05-22 19:17:57 UTC) #4
wdzierzanowski
https://codereview.chromium.org/1149203002/diff/20001/media/base/win/mf_initializer.h File media/base/win/mf_initializer.h (right): https://codereview.chromium.org/1149203002/diff/20001/media/base/win/mf_initializer.h#newcode14 media/base/win/mf_initializer.h:14: MEDIA_EXPORT void EnsureMediaFoundationInitialized(); On 2015/05/22 19:17:57, sandersd wrote: > ...
5 years, 7 months ago (2015-05-25 08:43:02 UTC) #5
sandersd (OOO until July 31)
lgtm
5 years, 7 months ago (2015-05-26 18:04:54 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149203002/40001
5 years, 7 months ago (2015-05-26 18:13:54 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
5 years, 7 months ago (2015-05-26 21:56:48 UTC) #9
commit-bot: I haz the power
Patchset 3 (id:??) landed as https://crrev.com/c0ab75a86447bc23d45ff7086b2375e2cd83c205 Cr-Commit-Position: refs/heads/master@{#331446}
5 years, 7 months ago (2015-05-26 21:58:35 UTC) #10
scottmg
A revert of this CL (patchset #3 id:40001) has been created in https://codereview.chromium.org/1154273002/ by scottmg@chromium.org. ...
5 years, 7 months ago (2015-05-26 22:12:18 UTC) #11
wdzierzanowski
On 2015/05/26 22:12:18, scottmg wrote: > A revert of this CL (patchset #3 id:40001) has ...
5 years, 7 months ago (2015-05-27 08:41:49 UTC) #12
wdzierzanowski
On 2015/05/27 08:41:49, wdzierzanowski wrote: > On 2015/05/26 22:12:18, scottmg wrote: > > A revert ...
5 years, 7 months ago (2015-05-27 09:03:56 UTC) #13
scottmg
On 2015/05/27 09:03:56, wdzierzanowski wrote: > On 2015/05/27 08:41:49, wdzierzanowski wrote: > > On 2015/05/26 ...
5 years, 7 months ago (2015-05-27 15:32:52 UTC) #14
scottmg
On 2015/05/27 15:32:52, scottmg wrote: > On 2015/05/27 09:03:56, wdzierzanowski wrote: > > On 2015/05/27 ...
5 years, 7 months ago (2015-05-27 15:34:15 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1149203002/60001
5 years, 7 months ago (2015-05-27 17:07:30 UTC) #18
sandersd (OOO until July 31)
FYI, I also prefer to re-use the same issue for small fixes. Still lgtm.
5 years, 7 months ago (2015-05-27 17:42:26 UTC) #19
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 7 months ago (2015-05-27 19:35:42 UTC) #20
commit-bot: I haz the power
5 years, 7 months ago (2015-05-27 19:36:41 UTC) #21
Message was sent while issue was closed.
Patchset 4 (id:??) landed as
https://crrev.com/5105004066c9a728764a1e60ede6f60a44e3ede5
Cr-Commit-Position: refs/heads/master@{#331623}

Powered by Google App Engine
This is Rietveld 408576698