Fix for android command line arguments to VisualBench
BUG=skia: Review URL: https://codereview.chromium.org/1241923002
This commit is contained in:
parent
eeb8d99b4e
commit
dcd56e2f0e
@ -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
|
||||
|
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user