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

Issue 14891002: Remove function level static initializers media library initialization. (Closed)

Created:
7 years, 7 months ago by DaleCurtis
Modified:
7 years, 7 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, sail+watch_chromium.org
Visibility:
Public.

Description

Remove function level static initializers media library initialization. Moves media library initialization into a lazy initializer and dedups a bunch of code. This will also be the eventual home for global media initialization routines (YUV and VectorMath). BUG=224662 TEST=compiles, media library works. Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=198559

Patch Set 1 : Moar typos. #

Total comments: 1

Patch Set 2 : Shuffle Android bits. #

Patch Set 3 : Fix sources. #

Patch Set 4 : Fix namespace. #

Patch Set 5 : Add media JNI init to content_test. #

Patch Set 6 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+119 lines, -105 lines) Patch
M content/public/test/content_test_suite_base.cc View 1 2 3 4 2 chunks +2 lines, -0 lines 0 comments Download
M media/base/media.h View 1 chunk +1 line, -1 line 0 comments Download
A media/base/media.cc View 1 1 chunk +74 lines, -0 lines 0 comments Download
M media/base/media_android.cc View 1 1 chunk +5 lines, -20 lines 0 comments Download
M media/base/media_posix.cc View 1 3 chunks +5 lines, -28 lines 0 comments Download
M media/base/media_stub.cc View 1 1 chunk +5 lines, -20 lines 0 comments Download
M media/base/media_win.cc View 1 1 chunk +7 lines, -35 lines 0 comments Download
M media/base/run_all_unittests.cc View 1 2 3 4 5 2 chunks +13 lines, -0 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 4 chunks +7 lines, -1 line 0 comments Download

Messages

Total messages: 22 (0 generated)
DaleCurtis
WDYT?
7 years, 7 months ago (2013-05-02 23:57:23 UTC) #1
scherkus (not reviewing)
https://codereview.chromium.org/14891002/diff/1002/media/base/media_android.cc File media/base/media_android.cc (right): https://codereview.chromium.org/14891002/diff/1002/media/base/media_android.cc#newcode17 media/base/media_android.cc:17: bool for_testing) { this is the only place where ...
7 years, 7 months ago (2013-05-03 17:44:43 UTC) #2
DaleCurtis
+nilesh who added the code in https://codereview.chromium.org/13467037 Nilesh: Should this code instead go in media/base/run_all_unittests.cc ...
7 years, 7 months ago (2013-05-03 17:49:26 UTC) #3
DaleCurtis
argh, actually +nilesh this time.
7 years, 7 months ago (2013-05-03 17:49:41 UTC) #4
DaleCurtis
Thinking about this more, I suspect it needs to be added elsewhere if we remove ...
7 years, 7 months ago (2013-05-03 18:03:40 UTC) #5
scherkus (not reviewing)
On 2013/05/03 18:03:40, DaleCurtis wrote: > Thinking about this more, I suspect it needs to ...
7 years, 7 months ago (2013-05-03 18:13:41 UTC) #6
DaleCurtis
Hmm, and cc_tests.gyp includes: https://code.google.com/p/chromium/codesearch#chromium/src/testing/android/native_test.gyp Which seems to run JNI init via: https://code.google.com/p/chromium/codesearch#chromium/src/testing/android/native_test_launcher.cc We also ...
7 years, 7 months ago (2013-05-03 18:18:51 UTC) #7
scherkus (not reviewing)
On 2013/05/03 18:18:51, DaleCurtis wrote: > Hmm, and cc_tests.gyp includes: > > https://code.google.com/p/chromium/codesearch#chromium/src/testing/android/native_test.gyp > > ...
7 years, 7 months ago (2013-05-03 18:23:04 UTC) #8
DaleCurtis
Ah, I didn't notice there were two methods. Thanks!
7 years, 7 months ago (2013-05-03 18:28:49 UTC) #9
DaleCurtis
Given that cc/ only uses VideoFrame() I believe the call there is a remnant of ...
7 years, 7 months ago (2013-05-03 20:34:37 UTC) #10
scherkus (not reviewing)
On 2013/05/03 20:34:37, DaleCurtis wrote: > Given that cc/ only uses VideoFrame() I believe the ...
7 years, 7 months ago (2013-05-03 20:40:47 UTC) #11
DaleCurtis
Failed content_unittests on Android, so I'll add the code there.
7 years, 7 months ago (2013-05-03 21:58:46 UTC) #12
DaleCurtis
+phajdan.jr for content/test OWNERs stamp.
7 years, 7 months ago (2013-05-03 22:38:39 UTC) #13
Paweł Hajdan Jr.
content/public/test LGTM
7 years, 7 months ago (2013-05-03 23:04:09 UTC) #14
nilesh
On 2013/05/03 17:49:26, DaleCurtis wrote: > +nilesh who added the code in https://codereview.chromium.org/13467037 > > ...
7 years, 7 months ago (2013-05-04 10:04:22 UTC) #15
nilesh
LGTM
7 years, 7 months ago (2013-05-04 10:07:43 UTC) #16
DaleCurtis
Thanks for the review everyone. CQ'ing.
7 years, 7 months ago (2013-05-06 18:03:52 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/14891002/28001
7 years, 7 months ago (2013-05-06 18:04:17 UTC) #18
commit-bot: I haz the power
Failed to apply patch for media/base/run_all_unittests.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 7 months ago (2013-05-06 18:04:28 UTC) #19
DaleCurtis
Rebased for recent non-conflicting vp9 changes.
7 years, 7 months ago (2013-05-06 18:20:51 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dalecurtis@chromium.org/14891002/42001
7 years, 7 months ago (2013-05-06 18:21:11 UTC) #21
commit-bot: I haz the power
7 years, 7 months ago (2013-05-06 22:55:27 UTC) #22
Message was sent while issue was closed.
Change committed as 198559

Powered by Google App Engine
This is Rietveld 408576698