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

Issue 1250663007: Allow webrtc compilation with stlport (Closed)

Created:
5 years, 5 months ago by jdduke (slow)
Modified:
5 years, 5 months ago
Reviewers:
ekm, Andrew MacDonald
CC:
webrtc-reviews_webrtc.org, ekm, turaj
Base URL:
https://chromium.googlesource.com/external/webrtc/trunk/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Allow webrtc compilation with stlport Android has not yet finalized its libc++ build. Allow compilation with stlport by removing several C++11 library usages. BUG=427718, 487341, webrtc:4866 R=andrew@webrtc.org Committed: https://chromium.googlesource.com/external/webrtc/+/7c5304c79151f092efcbef6680c5da366a930da2

Patch Set 1 #

Total comments: 3

Patch Set 2 : Code review #

Total comments: 5

Patch Set 3 : Fix only .data() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -1 line) Patch
M modules/audio_processing/intelligibility/intelligibility_enhancer.cc View 1 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 23 (6 generated)
jdduke (slow)
andrew@: We may need this for M45 on Android. I'm not sure what the proper ...
5 years, 5 months ago (2015-07-21 21:22:12 UTC) #2
jdduke (slow)
https://codereview.webrtc.org/1250663007/diff/1/modules/audio_processing/intelligibility/intelligibility_enhancer.cc File modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1250663007/diff/1/modules/audio_processing/intelligibility/intelligibility_enhancer.cc#newcode394 modules/audio_processing/intelligibility/intelligibility_enhancer.cc:394: result[i] = DotProduct(&(*filter_bank_[i].begin()), var, freqs_); If freqs_ can ever ...
5 years, 5 months ago (2015-07-21 21:23:13 UTC) #3
Andrew MacDonald
https://codereview.webrtc.org/1250663007/diff/1/modules/audio_processing/intelligibility/intelligibility_enhancer.cc File modules/audio_processing/intelligibility/intelligibility_enhancer.cc (right): https://codereview.webrtc.org/1250663007/diff/1/modules/audio_processing/intelligibility/intelligibility_enhancer.cc#newcode394 modules/audio_processing/intelligibility/intelligibility_enhancer.cc:394: result[i] = DotProduct(&(*filter_bank_[i].begin()), var, freqs_); On 2015/07/21 21:23:13, jdduke ...
5 years, 5 months ago (2015-07-21 22:20:12 UTC) #4
Andrew MacDonald
On 2015/07/21 21:22:12, jdduke wrote: > andrew@: We may need this for M45 on Android. ...
5 years, 5 months ago (2015-07-21 22:23:48 UTC) #6
tnakamura-webrtc
On 2015/07/21 22:23:48, andrew wrote: > On 2015/07/21 21:22:12, jdduke wrote: > > andrew@: We ...
5 years, 5 months ago (2015-07-22 13:28:33 UTC) #8
jdduke (slow)
Thanks for the info. At this point we're really hoping to not need this for ...
5 years, 5 months ago (2015-07-22 18:07:16 UTC) #9
Andrew MacDonald
lgtm. You should be able to use the CQ.
5 years, 5 months ago (2015-07-22 18:47:32 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1250663007/20001
5 years, 5 months ago (2015-07-22 18:47:52 UTC) #12
Andrew MacDonald
On 2015/07/22 18:47:32, andrew wrote: > lgtm. You should be able to use the CQ. ...
5 years, 5 months ago (2015-07-22 18:48:08 UTC) #13
commit-bot: I haz the power
Try jobs failed on following builders: android_clang on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_clang/builds/6710) android_gn_rel on tryserver.webrtc (JOB_FAILED, ...
5 years, 5 months ago (2015-07-22 18:48:35 UTC) #15
Andrew MacDonald
Ah, I suppose you uploaded this from a Chromium checkout. I think the CQ only ...
5 years, 5 months ago (2015-07-22 19:08:10 UTC) #16
jdduke (slow)
On 2015/07/22 19:08:10, andrew wrote: > Ah, I suppose you uploaded this from a Chromium ...
5 years, 5 months ago (2015-07-22 19:31:04 UTC) #17
Andrew MacDonald
https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/intelligibility/intelligibility_utils.cc File modules/audio_processing/intelligibility/intelligibility_utils.cc (right): https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/intelligibility/intelligibility_utils.cc#newcode35 modules/audio_processing/intelligibility/intelligibility_utils.cc:35: return std::isfinite(c.real()) && std::isfinite(c.imag()); This is also C++11 standard ...
5 years, 5 months ago (2015-07-22 19:41:30 UTC) #18
Andrew MacDonald
5 years, 5 months ago (2015-07-22 19:41:51 UTC) #19
jdduke (slow)
https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/intelligibility/intelligibility_utils.cc File modules/audio_processing/intelligibility/intelligibility_utils.cc (right): https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/intelligibility/intelligibility_utils.cc#newcode35 modules/audio_processing/intelligibility/intelligibility_utils.cc:35: return std::isfinite(c.real()) && std::isfinite(c.imag()); On 2015/07/22 19:41:30, andrew wrote: ...
5 years, 5 months ago (2015-07-22 19:51:00 UTC) #20
Andrew MacDonald
Committed patchset #3 (id:40001) manually as 7c5304c79151f092efcbef6680c5da366a930da2 (presubmit successful).
5 years, 5 months ago (2015-07-22 20:04:36 UTC) #21
ekm
5 years, 5 months ago (2015-07-22 21:26:37 UTC) #23
Message was sent while issue was closed.
https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/...
File modules/audio_processing/intelligibility/intelligibility_utils.cc (right):

https://codereview.webrtc.org/1250663007/diff/20001/modules/audio_processing/...
modules/audio_processing/intelligibility/intelligibility_utils.cc:51: if
(cplxfinite(c) && !cplxnormal(c)) {
The C++11 stuff is overkill. I think we can just change this to 

if (c.real() == 0.f || c.imag() == 0.f) {

and get completely get rid of both definitions of cplxnormal and cplxfinite
above. This still passes all tests, and we haven't documented any subnormal
behavior here yet so we should be ok. You'd can also get rid of the EXPECTs that
call those functions in intelligibility_utils_unittest.cc, which is the only
other place these are called.

Powered by Google App Engine
This is Rietveld 408576698