Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(763)

Side by Side Diff: gpu/demos/run_demo_ppapi.sh

Issue 9310105: Cleanup: Remove even more dead switches. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/gfx/compositor/compositor_switches.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 #!/bin/sh 1 #!/bin/sh
2 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved.
3 # Use of this source code is governed by a BSD-style license that can be 3 # Use of this source code is governed by a BSD-style license that can be
4 # found in the LICENSE file. 4 # found in the LICENSE file.
5 5
6 if [ -z "$1" ]; then 6 if [ -z "$1" ]; then
7 echo "Usage: $(basename "$0") <demo_name> [--debug]" >&2 7 echo "Usage: $(basename "$0") <demo_name> [--debug]" >&2
8 echo >&2 8 echo >&2
9 echo "Builds and runs PPAPI demo inside Chrome." >&2 9 echo "Builds and runs PPAPI demo inside Chrome." >&2
10 echo "Debug flag attaches the debugger to renderer process." >&2 10 echo "Debug flag attaches the debugger to renderer process." >&2
11 echo >&2 11 echo >&2
12 echo "Try: $0 hello_triangle" >&2 12 echo "Try: $0 hello_triangle" >&2
13 echo >&2 13 echo >&2
14 exit 1 14 exit 1
15 fi 15 fi
16 if [ "$2" == "--debug" ]; then 16 if [ "$2" == "--debug" ]; then
17 CHROME_DEBUG="--renderer-cmd-prefix=xterm -geometry 150x40 -e gdb --args" 17 CHROME_DEBUG="--renderer-cmd-prefix=xterm -geometry 150x40 -e gdb --args"
18 else 18 else
19 CHROME_DEBUG= 19 CHROME_DEBUG=
20 fi 20 fi
21 CHROME_SRC="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")" 21 CHROME_SRC="$(dirname "$(dirname "$(dirname "$(readlink -f "$0")")")")"
22 PLUGIN_LIB="$CHROME_SRC/out/Debug/lib${1}_ppapi.so" 22 PLUGIN_LIB="$CHROME_SRC/out/Debug/lib${1}_ppapi.so"
23 PLUGIN_MIME="pepper-application/x-gpu-demo" 23 PLUGIN_MIME="pepper-application/x-gpu-demo"
24 cd "$CHROME_SRC" 24 cd "$CHROME_SRC"
25 make "${1}_ppapi" && out/Debug/chrome --use-gl=osmesa --enable-gpu-plugin \ 25 make "${1}_ppapi" && out/Debug/chrome --use-gl=osmesa \
26 "${CHROME_DEBUG}" \ 26 "${CHROME_DEBUG}" \
27 --register-pepper-plugins="$PLUGIN_LIB;$PLUGIN_MIME" \ 27 --register-pepper-plugins="$PLUGIN_LIB;$PLUGIN_MIME" \
28 "file://$CHROME_SRC/gpu/demos/pepper_gpu_demo.html" 28 "file://$CHROME_SRC/gpu/demos/pepper_gpu_demo.html"
29 29
OLDNEW
« no previous file with comments | « content/public/common/content_switches.cc ('k') | ui/gfx/compositor/compositor_switches.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698