From 0c8e1ad6b4fb2f50a4d6f68904889a848f5ab41c Mon Sep 17 00:00:00 2001 From: "boliu@chromium.org" Date: Thu, 2 Jan 2014 18:54:28 +0000 Subject: [PATCH] Add option to compile out DCHECKs in android webview To support performance testing since DCHECKs can have a measurable impact on performance. BUG= NOTRY=true Review URL: https://codereview.chromium.org/118803004 git-svn-id: http://src.chromium.org/svn/trunk/src/build@242778 4ff67af0-8c30-449e-8e8b-ad334ec8d88c --- android/envsetup_functions.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/android/envsetup_functions.sh b/android/envsetup_functions.sh index e900df4c5..29cf44f19 100755 --- a/android/envsetup_functions.sh +++ b/android/envsetup_functions.sh @@ -311,6 +311,10 @@ ${ANDROID_SDK_VERSION} DEFINES+=" android_full_debug=1" DEFINES+=" android_use_tcmalloc=1" fi + if [[ -n "$CHROME_ANDROID_WEBVIEW_OFFICIAL_BUILD" ]]; then + DEFINES+=" logging_like_official_build=1" + DEFINES+=" tracing_like_official_build=1" + fi export GYP_DEFINES="${DEFINES}" export GYP_GENERATORS="android"