BUG=skia:
Review URL: https://codereview.chromium.org/
1241923002
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
env->NewStringUTF("cmdLineFlags"));
if (jsParam1) {
const char* flags = env->GetStringUTFChars(jsParam1, 0);
- SkTArray<SkString> flagEntries;
SkStrSplit(flags, " ", &visualBenchState.fFlags);
env->ReleaseStringUTFChars(jsParam1, flags);
}