| OLD | NEW |
| (Empty) |
| 1 Runtime Configuration Settings | |
| 2 ============================== | |
| 3 | |
| 4 Here is a (partial) list of Skia's runtime configuration settings: | |
| 5 | |
| 6 ## Warning suppression: | |
| 7 | |
| 8 * configuration name: images.gif.suppressDecoderWarnings | |
| 9 environment variable: skia_images_gif_suppressDecoderWarnings | |
| 10 type: boolean | |
| 11 description: Suppress GIF warnings and errors when calling image decode | |
| 12 functions. | |
| 13 default: true. | |
| 14 | |
| 15 * configuration name: images.jpeg.suppressDecoderWarnings | |
| 16 environment variable: skia_images_jpeg_suppressDecoderWarnings | |
| 17 type: boolean | |
| 18 description: Suppress most JPG warnings when calling decode functions. | |
| 19 default: false in debug, true otherwise. | |
| 20 | |
| 21 * configuration name: images.jpeg.suppressDecoderErrors | |
| 22 environment variable: skia_images_jpeg_suppressDecoderErrors | |
| 23 type: boolean | |
| 24 description: Suppress most JPG error messages when decode function fails. | |
| 25 default: false in debug, true otherwise. | |
| 26 | |
| 27 * configuration name: images.png.suppressDecoderWarnings | |
| 28 environment variable: skia_images_png_suppressDecoderWarnings | |
| 29 type: boolean | |
| 30 description: Suppress most PNG warnings when calling image decode functions. | |
| 31 default: false in debug, true otherwise. | |
| 32 | |
| 33 ## Other: | |
| 34 | |
| 35 * configuration name: bitmap.filter | |
| 36 environment variable: skia_bitmap_filter | |
| 37 type: string | |
| 38 description: Which scanline bitmap filter to use \[mitchell, lanczos, hamming, | |
| 39 gaussian, triangle, box\] | |
| 40 default: mitchell | |
| 41 | |
| 42 * configuration name: mask.filter.analyticNinePatch | |
| 43 environment variable: skia_mask_filter_analyticNinePatch | |
| 44 type: boolean | |
| 45 description: Use the faster analytic blur approach for ninepatch rects | |
| 46 default: \? | |
| 47 | |
| 48 * configuration name: gpu.deferContext | |
| 49 environment variable: skia_gpu_deferContext | |
| 50 type: boolean | |
| 51 description: Defers rendering in GrContext via GrInOrderDrawBuffer | |
| 52 default: true | |
| 53 | |
| 54 * configuration name: gpu.dumpFontCache | |
| 55 environment variable: skia_gpu_dumpFontCache | |
| 56 type: boolean | |
| 57 description: Dump the contents of the font cache before every purge | |
| 58 default: false | |
| 59 | |
| 60 * configuration name: bitmap.filter.highQualitySSE | |
| 61 environment variable: skia_bitmap_filter_highQualitySSE | |
| 62 type: boolean | |
| 63 description: Use SSE optimized version of high quality image filters | |
| 64 default: false | |
| 65 | |
| 66 ## Use: | |
| 67 | |
| 68 These configuration values can be changed at runtime by including this in your | |
| 69 program: | |
| 70 | |
| 71 <!--?prettify?--> | |
| 72 ~~~~ | |
| 73 #include "SkRTConf.h" | |
| 74 /*...*/ | |
| 75 int main() { | |
| 76 SK_CONF_SET( configuration_name, new_value ); | |
| 77 /*...*/ | |
| 78 ~~~~ | |
| 79 | |
| 80 Or by setting the corresponding environment variable before starting the | |
| 81 program. For example, in Bourne shell: | |
| 82 | |
| 83 <!--?prettify?--> | |
| 84 ~~~~ | |
| 85 #!/bin/sh | |
| 86 export skia_environment_variable="new_value" | |
| 87 your_program | |
| 88 ~~~~ | |
| 89 | |
| OLD | NEW |