SkQP: fix upload script

Also report transparency

Change-Id: I38c803d1abe1892dc4d7ee6d917f5a39eac6c1c3
Reviewed-on: https://skia-review.googlesource.com/98762
Reviewed-by: Hal Canary <halcanary@google.com>
Commit-Queue: Hal Canary <halcanary@google.com>
This commit is contained in:
Hal Canary 2018-01-23 14:52:58 -05:00 committed by Skia Commit-Bot
parent 78d762d1ff
commit 3da15bb1c8
2 changed files with 6 additions and 1 deletions

View File

@ -228,6 +228,10 @@ bool MakeReport(const char* report_directory_path) {
"<title>SkQP Report</title>\n"
"<style>\n"
"img { max-width:48%; border:1px green solid; }\n"
"img.i { background-image:url('data:image/png;base64,iVBORw0KGgoAAAANSU"
"hEUgAAABAAAAAQCAAAAAA6mKC9AAAAAXNSR0IArs4c6QAAAAJiS0dEAP+Hj8y/AAAACXBI"
"WXMAAA7DAAAOwwHHb6hkAAAAB3RJTUUH3gUBEi4DGRAQYgAAAB1JREFUGNNjfMoAAVJQmo"
"kBDdBHgPE/lPFsYN0BABdaAwN6tehMAAAAAElFTkSuQmCC'); }\n"
"</style>\n"
"</head>\n"
"<body>\n"
@ -249,7 +253,7 @@ bool MakeReport(const char* report_directory_path) {
"maximum error: %d\n<br>\n"
"bad pixel counts: %d\n<br>\n"
"<a href=\"%s/" PATH_IMG_PNG "\">"
"<img src=\"%s/" PATH_IMG_PNG "\" alt='img'></a>\n"
"<img src=\"%s/" PATH_IMG_PNG "\" alt='img' class=\"i\"></a>\n"
"<a href=\"%s/" PATH_ERR_PNG "\">"
"<img src=\"%s/" PATH_ERR_PNG "\" alt='err'></a>\n<br>\n"
"<a href=\"%s/" PATH_MAX_PNG "\">max</a>\n<br>\n"

View File

@ -47,5 +47,6 @@ find * -type f | sort | while IFS= read -r FILENAME; do
done
printf '\rdone \n'
upload "$FILES" > files.checksum
wait
rm "$FILES" "$EXTANT"