From ba64afbf04503fe67050e71b266d999cae6c801d Mon Sep 17 00:00:00 2001 From: Mirko Bonadei Date: Tue, 18 Sep 2018 13:26:02 +0200 Subject: [PATCH] Add documentation about field_trial/metrics custom impl. Bug: webrtc:9631 Change-Id: I9bcf00f3bab980a3cd1fffa422d999643832c75c No-Try: True Reviewed-on: https://webrtc-review.googlesource.com/100802 Commit-Queue: Mirko Bonadei Reviewed-by: Karl Wiberg Cr-Commit-Position: refs/heads/master@{#24764} --- native-api.md | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/native-api.md b/native-api.md index a01f0a83fc..5ee6036ba8 100644 --- a/native-api.md +++ b/native-api.md @@ -83,3 +83,27 @@ You can achieve this by defining the preprocessor macro `WEBRTC_EXCLUDE_BUILT_IN_SSL_ROOT_CERTS`. If you use GN, you can just set the GN argument `rtc_builtin_ssl_root_certificates` to false and GN will define the macro for you. + +## `WEBRTC_EXCLUDE_FIELD_TRIAL_DEFAULT` +If you want to provide your own implementation of `webrtc::field_trial` functions +(more info [here][field_trial_h]) you will have to exclude WebRTC's default +implementation. + +You can achieve this by defining the preprocessor macro +`WEBRTC_EXCLUDE_FIELD_TRIAL_DEFAULT`. If you use GN, you can just set the GN +argument `rtc_exclude_field_trial_default` to true and GN will define the +macro for you. + +[field_trial_h]: https://webrtc.googlesource.com/src/+/master/system_wrappers/include/field_trial.h + +## `WEBRTC_EXCLUDE_METRICS_DEFAULT` +If you want to provide your own implementation of `webrtc::metrics` functions +(more info [here][metrics_h]) you will have to exclude WebRTC's default +implementation. + +You can achieve this by defining the preprocessor macro +`WEBRTC_EXCLUDE_METRICS_DEFAULT`. If you use GN, you can just set the GN +argument `rtc_exclude_metrics_default` to true and GN will define the +macro for you. + +[metrics_h]: https://webrtc.googlesource.com/src/+/master/system_wrappers/include/metrics.h