Fix for android command line arguments to VisualBench

BUG=skia:

Review URL: https://codereview.chromium.org/1241923002
This commit is contained in:
joshualitt 2015-07-15 10:17:20 -07:00 committed by Commit bot
parent eeb8d99b4e
commit dcd56e2f0e
2 changed files with 1 additions and 2 deletions

View File

@ -21,7 +21,7 @@ fi
if [[ ${app} == 'SampleApp' ]]; then
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.SkiaSampleActivity" --es "cmdLineFlags" "${APP_ARGS[*]:1}"
elif [[ ${app} == "VisualBench" ]] ; then
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.VisualBenchActivity" --es "cmdLineFlags" "${APP_ARGS[*]:1}"
$ADB ${DEVICE_SERIAL} shell am start -S -n "com.skia/.VisualBenchActivity" --es "cmdLineFlags" \"${APP_ARGS[*]:1}\"
else
echo "ERROR: supports either 'SampleApp' or 'VisualBench' as valid apps"
fi

View File

@ -90,7 +90,6 @@ void android_main(struct android_app* state) {
env->NewStringUTF("cmdLineFlags"));
if (jsParam1) {
const char* flags = env->GetStringUTFChars(jsParam1, 0);
SkTArray<SkString> flagEntries;
SkStrSplit(flags, " ", &visualBenchState.fFlags);
env->ReleaseStringUTFChars(jsParam1, flags);
}