|
gm
Running gm (Golden Master)
Introductiongm is a useful tool to see if a change will regress the rendering. It draws some images and compares them to expected images. How to runcd trunk make all out/Debug/gm Running on the GPUSome test-images are done on the gpu, which can give slightly different results on different gpus (e.g. diff between mac desktop and mac laptop). This can be fixed by switching to use mesa, but until then, you can run against a known set for your platform with the following: out/Debug/gm -r gm/base # or some other gm/directory Valid directories
Creating images for another platformGet a clean tree (e.g. rev. 1318 seems to be clean) cd trunk mkdir gm/my_dir out/Debug/gm -w gm/my_dir Now you can test subsequent changes: out/Debug/gm -r gm/my_dir Creating images on AndroidWe need to open a shell on the target device. Assuming you have the ADB (Android Debug Bridge) in your path and have pushed the gm (Golden Master) program and named it skia_gm, the following will create the images on your device. If you have not pushed the gm program follow the instructions at GettingStartedOnAndroid adb shell cd sdcard mkdir gm/my_dir skia_gm --nopdf -w gm/my_dir exit Navigate to the directory you want to pull the images to and then adb pull sdcard/gm/my_dir | ||||||||||||||