commit | 1ffb3747bd30d3d7bad9cfedf056aea6b243a687 | [log] [tgz] |
---|---|---|
author | Karl Wiberg <kwiberg@webrtc.org> | Fri May 04 13:04:48 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon May 07 09:08:14 2018 |
tree | d022ed333fce0592e5b833e17e883b07418bfa68 | |
parent | a4e37a8f8232e29f89fffd6368beed6faea946a2 [diff] |
RTC_LOG(): Internally, pass logging severity as template argument When the logging severity is statically known, passing it as a template argument instead of as a function argument saves space at the call site. Because this is a constructor, it's not possible to pass template arguments explicitly---they need to be deduced. So we pass a dummy function argument whose type encodes the logging severity, and because the dummy is an empty struct, the ABI generally specifies that this is a no-op with no runtime cost. In aggregate, this reduces the size of libjingle_peerconnection_so.so by 4 kB. Bug: webrtc:9185 Change-Id: I8118f39dc2aed3be34b2979a239fc0d3dffa969f Reviewed-on: https://webrtc-review.googlesource.com/74582 Commit-Queue: Karl Wiberg <kwiberg@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#23136}
WebRTC is a free, open software project that provides browsers and mobile applications with Real-Time Communications (RTC) capabilities via simple APIs. The WebRTC components have been optimized to best serve this purpose.
Our mission: To enable rich, high-quality RTC applications to be developed for the browser, mobile platforms, and IoT devices, and allow them all to communicate via a common set of protocols.
The WebRTC initiative is a project supported by Google, Mozilla and Opera, amongst others.
See http://www.webrtc.org/native-code/development for instructions on how to get started developing with the native code.
Authoritative list of directories that contain the native API header files.