| OLD | NEW |
| 1 Linux | 1 Linux |
| 2 ===== | 2 ===== |
| 3 | 3 |
| 4 Quickstart | 4 Quickstart |
| 5 ---------- | 5 ---------- |
| 6 | 6 |
| 7 1. Install depot tools. | 7 1. Install depot tools. |
| 8 | 8 |
| 9 <!--?prettify lang=sh?--> | 9 <!--?prettify lang=sh?--> |
| 10 | 10 |
| (...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 make -j SampleApp | 129 make -j SampleApp |
| 130 out/Debug/SampleApp | 130 out/Debug/SampleApp |
| 131 | 131 |
| 132 When this launches, you should see a window with various graphical examples. | 132 When this launches, you should see a window with various graphical examples. |
| 133 To move through the sample app, use the following keypresses: | 133 To move through the sample app, use the following keypresses: |
| 134 | 134 |
| 135 * right-arrow key: cycle through different test pages | 135 * right-arrow key: cycle through different test pages |
| 136 * left-arrow key: cycle through rendering methods for each test page | 136 * left-arrow key: cycle through rendering methods for each test page |
| 137 * other keys are defined in SampleApp.cpp’s SampleWindow::onHandleKey() and Sa
mpleWindow::onHandleChar() methods | 137 * other keys are defined in SampleApp.cpp’s SampleWindow::onHandleKey() and Sa
mpleWindow::onHandleChar() methods |
| 138 | 138 |
| 139 Build and run gm ("golden master") tests | 139 Build and run DM ("diamond master") tests |
| 140 ---------------------------------------- | 140 ---------------------------------------- |
| 141 | 141 |
| 142 This will display the return value (0 = success) after running the tests... | 142 [DM is Skia's unit/correctness test harness](../../dev/testing/testing). |
| 143 | 143 |
| 144 make -j gm | 144 make -j dm |
| 145 out/Debug/gm -r gm/base-linux ; echo $? | 145 out/Debug/dm |
| 146 | 146 |
| 147 You can also adjust the type used to represent SkScalar. By default, we use a | 147 The `GYP_DEFINES` environment variable can be used to change Skia's |
| 148 float. To change that, run it as follows: | 148 compile-time settings. For example, to disable the Skia GPU backend, |
| 149 run it as follows: |
| 149 | 150 |
| 150 GYP_DEFINES="skia_scalar=fixed" make -j gm | 151 GYP_DEFINES='skia_gpu=0' make -j dm |
| 151 out/Debug/gm -r gm/base-linux-fixed ; echo $? | 152 out/Debug/dm |
| 152 | 153 |
| 153 Build and run bench (performance testbench) | 154 Build and run bench (performance testbench) |
| 154 ------------------------------------------- | 155 ------------------------------------------- |
| 155 | 156 |
| 156 Since bench tests performance, it usually makes more sense to run it in | 157 Since bench tests performance, it usually makes more sense to run it in |
| 157 Release mode... | 158 Release mode... |
| 158 | 159 |
| 159 make -j bench BUILDTYPE=Release | 160 make -j bench BUILDTYPE=Release |
| 160 out/Release/bench | 161 out/Release/bench |
| 161 | 162 |
| 162 Build tools | 163 Build tools |
| 163 ----------- | 164 ----------- |
| 164 | 165 |
| 165 make -j tools | 166 make -j tools |
| 166 out/Debug/skdiff | 167 out/Debug/skdiff |
| 167 | 168 |
| 168 Clean up all generated files | 169 Clean up all generated files |
| 169 ---------------------------- | 170 ---------------------------- |
| 170 | 171 |
| 171 make clean | 172 make clean |
| OLD | NEW |