| OLD | NEW |
| 1 WebTry Server | 1 WebTry Server |
| 2 ============= | 2 ============= |
| 3 | 3 |
| 4 Allows trying out Skia code in the browser. Run a local webserver | 4 Allows trying out Skia code in the browser. Run a local webserver |
| 5 and from the pages it serves try out Skia code and see the results | 5 and from the pages it serves try out Skia code and see the results |
| 6 immediately. To make sandboxing easier this must be built w/GPU off. | 6 immediately. To make sandboxing easier this must be built w/GPU off. |
| 7 | 7 |
| 8 | 8 |
| 9 Running Locally | 9 Running Locally |
| 10 =============== | 10 =============== |
| 11 | 11 |
| 12 Set your SKIA_ROOT environment variable to point at your skia tree, then: | 12 One time setup: |
| 13 |
| 14 $ export SKIA_ROOT=path_to_your_skia_source |
| 15 $ export WEBTRY_INOUT=path_to_a_writeable_directory |
| 16 $ mkdir -p $WEBTRY_INOUT |
| 17 |
| 18 Then, to run: |
| 13 | 19 |
| 14 $ cd experimental/webtry | 20 $ cd experimental/webtry |
| 15 $ go get -d | 21 $ go get -d |
| 16 $ ./build | 22 $ ./build |
| 17 $ ./webtry | 23 $ ./webtry |
| 18 | 24 |
| 19 Then visit http://localhost:8000 in your browser. | 25 Then visit http://localhost:8000 in your browser. |
| 20 | 26 |
| 21 Only tested under linux and MacOS, doubtful it will work on other platforms. | 27 Only tested under linux and MacOS, doubtful it will work on other platforms. |
| 22 | 28 |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 83 1. SSH into the server as default. | 89 1. SSH into the server as default. |
| 84 2. cd ~/skia/experimental/webtry/setup | 90 2. cd ~/skia/experimental/webtry/setup |
| 85 3. git pull | 91 3. git pull |
| 86 4. ./webtry_setup.sh | 92 4. ./webtry_setup.sh |
| 87 | 93 |
| 88 Third Party Code | 94 Third Party Code |
| 89 ================ | 95 ================ |
| 90 | 96 |
| 91 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update | 97 * res/js/polyfill.js - Various JS polyfill libraries. To rebuild or update |
| 92 see poly/README.md. | 98 see poly/README.md. |
| OLD | NEW |