Up to higher level directory | |||
Name | Date | Size | |
---|---|---|---|
download_model | 21-Aug-2018 | 2.2K | |
generate_gn_args | 21-Aug-2018 | 1.9K | |
gm_knowledge.cpp | 21-Aug-2018 | 14.1K | |
gm_knowledge.h | 21-Aug-2018 | 1.9K | |
gm_runner.cpp | 21-Aug-2018 | 9.4K | |
gm_runner.h | 21-Aug-2018 | 2.3K | |
gn_to_bp.py | 21-Aug-2018 | 6.1K | |
inflate.py | 21-Aug-2018 | 231 | |
jni/ | 21-Aug-2018 | ||
make_apk.sh | 21-Aug-2018 | 961 | |
make_gmkb.go | 21-Aug-2018 | 4.2K | |
make_known_tests.sh | 21-Aug-2018 | 463 | |
make_model.sh | 21-Aug-2018 | 445 | |
make_universal_apk | 21-Aug-2018 | 2.2K | |
README.md | 21-Aug-2018 | 3.4K | |
remove_unneeded_assets | 21-Aug-2018 | 989 | |
run_skqp_exe | 21-Aug-2018 | 1.6K | |
setup_resources | 21-Aug-2018 | 631 | |
skqp.cpp | 21-Aug-2018 | 4.9K | |
skqp_asset_manager.h | 21-Aug-2018 | 466 | |
sysopen.py | 21-Aug-2018 | 471 | |
upload_model | 21-Aug-2018 | 1.4K |
1 SkQP 2 ==== 3 4 SkQP (Skia Quality Program) is a component of the Android CTS (Compatablity 5 Test Suite) that tests an Android device's GPU and OpenGLES & Vulkan drivers 6 using Skia's existing unit & rendering tests. 7 8 How to run the SkQP tests 9 ------------------------- 10 11 1. Get the dependencies: 12 13 - You will need Java JDK 8, `git`, and `python`. 14 15 - Install Chromium's [depot\_tools](http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html). Add it to your `PATH`. 16 17 git clone 'https://chromium.googlesource.com/chromium/tools/depot_tools.git' 18 export PATH="${PWD}/depot_tools:${PATH}" 19 20 - Install the [Android NDK](https://developer.android.com/ndk/downloads/). 21 22 ( cd ~; unzip ~/Downloads/android-ndk-*.zip ) 23 ANDROID_NDK=$(ls ~/android-ndk-*) # Or wherever you installed the Android NDK. 24 25 - Install the [Android SDK](https://developer.android.com/studio/#command-tools). 26 Set the `ANDROID_HOME` environment variable. 27 28 mkdir ~/android-sdk 29 ( cd ~/android-sdk; unzip ~/Downloads/sdk-tools-*.zip ) 30 yes | ~/android-sdk/tools/bin/sdkmanager --licenses 31 export ANDROID_HOME=~/android-sdk # Or wherever you installed the Android SDK. 32 33 Put `adb` in your `PATH`. 34 35 export PATH="${PATH}:${ANDROID_HOME}/platform-tools" 36 37 2. Get the right version of Skia: 38 39 git clone https://skia.googlesource.com/skia.git 40 cd skia 41 git checkout origin/skqp/dev # or whatever release tag you need 42 43 3. Download dependencies and the model: 44 45 python tools/skqp/download_model 46 python tools/skqp/setup_resources 47 python tools/git-sync-deps 48 49 4. Configure the build: 50 51 python tools/skqp/generate_gn_args out/skqp-arm "$ANDROID_NDK" \ 52 --arch arm \ 53 --api_level 26 54 bin/gn gen out/skqp-arm 55 56 If you want to test another architecture, replace `arm` with `x86`, `x64` 57 or `arm64`. Run 'python tools/skqp/generate_gn_args -h' for 58 all options. 59 60 5. Build, install, and run. 61 62 platform_tools/android/bin/android_build_app -C out/skqp-arm skqp 63 adb install -r out/skqp-arm/skqp.apk 64 adb logcat -c 65 adb shell am instrument -w org.skia.skqp 66 67 6. Monitor the output with: 68 69 adb logcat org.skia.skqp skia "*:S" 70 71 Note the test's output path on the device. It will look something like this: 72 73 01-23 15:22:12.688 27158 27173 I org.skia.skqp: 74 output written to "/storage/emulated/0/Android/data/org.skia.skqp/files/output" 75 76 7. Retrieve and view the report with: 77 78 OUTPUT_LOCATION="/storage/emulated/0/Android/data/org.skia.skqp/files/output" 79 adb pull $OUTPUT_LOCATION /tmp/ 80 tools/skqp/sysopen.py /tmp/output/skqp_report/report.html 81 82 Running a single test 83 --------------------- 84 85 To run a single test, for example `gles/aarectmodes`: 86 87 adb shell am instrument -e class 'org.skia.skqp.SkQPRunner#gles/aarectmodes' -w org.skia.skqp 88 89 Unit tests can be run with the `unitTest/` prefix: 90 91 adb shell am instrument -e class 'org.skia.skqp.SkQPRunner#unitTest/GrSurface -w org.skia.skqp 92 93 Run as a non-APK executable 94 --------------------------- 95 96 1. Follow steps 1-4 as above. 97 98 2. Build the SkQP program, load files on the device, and run skqp: 99 100 ninja -C out/skqp-arm skqp 101 python tools/skqp/run_skqp_exe out/skqp-arm 102 103