Go to file
Kevin Lubick a0ba612bb2 [PathKit] Adding test infrastructure to support Gold output
To get the gold images out of the browser tests, this adds
testReporter.js and pathkit_aggregator.go.  testReporter bundles
up the output as a base64 encoded PNG and sends it over the local
network to pathkit_aggregator.  pathkit_aggregator will keep
a list of test results reported in this way and write the PNGs
to /OUT of the container (which is the swarming output directory).
Finally, after all the tests are run, the helper script "test_pathkit.sh"
makes a POST request that creates the JSON file that gold expects
(following the schema https://github.com/google/skia-buildbot/blob/master/golden/docs/INGESTION.md)

pathkit_aggregator takes many command line arguments which control
the keys that Gold needs in order to ingest and handle the data.
Of note, this creates a new set (i.e. source_type) of gold images
called "pathkit", which will distinguish it from "gm", "image", etc.

There will be at least 2 sub-sets of "pathkit" images, "canvas" and "svg",
(representing the 2 output types of PathKit).  This CL doesn't
quite handle SVG yet, as it needs a way to convert SVG to PNG in the
browser and will be addressed in a follow up CL.

A "standard" gm is sized at 600x600. This was arbitrarily picked.

Note that the functions in testReporter.js return Promises based
on the fetch requests to post the data. This eliminates the race
condition between the /report_gold_data and /dump_json since
running the karma tests won't return until all reports are done.

Other changes of note:
 - Adds go to karma-chrome-tests container.
 - renames recipe_modules/build/wasm.py -> pathkit.py to be consistent with
the name of test_pathkit.py and make for easier grepping.
 - Increases the JS test timeout to 10s (up from 5) to hopefully avoid
the flakes seen in the Debug Test.

Bug: skia:8216
Change-Id: Ic2cad54f3d19cc16601cf2e9a87798db1e6887a2
Reviewed-on: https://skia-review.googlesource.com/147042
Reviewed-by: Stephan Altmueller <stephana@google.com>
2018-08-15 19:25:42 +00:00
animations first cut at a checkbox 2009-10-21 19:41:10 +00:00
bench add dstAT param to xform steps 2018-08-14 16:26:53 +00:00
bin add --sync to adb push in bin/droid 2018-06-28 15:46:57 +00:00
dm Remove old sRGB config support from backend render target tool utilities 2018-08-09 15:27:24 +00:00
docker Use a larger machine for our cloud build. 2018-07-31 20:40:33 +00:00
docs added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
example Compile with GCC 7.2.0. 2018-03-13 22:18:18 +00:00
experimental [PathKit] Adding test infrastructure to support Gold output 2018-08-15 19:25:42 +00:00
fuzz clean up includes 2018-08-06 14:49:46 +00:00
gm return this from maker calls, so we can chain the calls 2018-08-15 17:21:59 +00:00
gn add tests for cubicmap 2018-08-14 21:47:18 +00:00
include return this from maker calls, so we can chain the calls 2018-08-15 17:21:59 +00:00
infra [PathKit] Adding test infrastructure to support Gold output 2018-08-15 19:25:42 +00:00
modules [skottie] Eliminate some temp SkString allocations 2018-08-14 17:25:20 +00:00
platform_tools Prototype an Android lottie player 2018-08-02 16:20:13 +00:00
resources Add sRGB profile to mandrill images 2018-07-09 23:02:39 +00:00
samplecode Consolidate the scissor enums into one "GrScissorTest" enum 2018-08-15 13:53:42 +00:00
site added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
src return this from maker calls, so we can chain the calls 2018-08-15 17:21:59 +00:00
tests return this from maker calls, so we can chain the calls 2018-08-15 17:21:59 +00:00
third_party Roll skia/third_party/skcms 5b1292eaeda5..f1e2b45d18fa (1 commits) 2018-08-08 22:04:29 +00:00
tools added optimizations to speed up skinning 2018-08-15 15:52:29 +00:00
.clang-format Update .clang-format to handle Objective-C files 2018-07-27 21:33:30 +00:00
.gitignore Add OpenCL build. 2018-06-29 13:06:57 +00:00
.gn Basic standalone GN configs. 2016-07-21 12:25:45 -07:00
AUTHORS Fixed SkVertices crashing on Windows DLL builds 2018-04-22 14:42:01 +00:00
BUILD.gn Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
codereview.settings Make uploading to Gerrit the default for Skia 2016-11-09 19:07:56 +00:00
CONTRIBUTING Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
CQ_COMMITTERS Moved committer list to chrome-infra-auth and deleted it from the repo 2015-09-02 13:37:54 -07:00
DEPS Roll third_party/externals/angle2 2363356f52f6..21e5e85a4976 (1 commits) 2018-08-15 06:13:59 +00:00
Doxyfile Make the housekeeper upload doxygen to a newer bucket 2016-10-04 13:23:57 -07:00
LICENSE BUG=skia:5602 2016-09-02 11:19:34 -07:00
OWNERS add OWNERS file 2017-12-01 19:50:19 +00:00
PRESUBMIT.py Make CR and trailing whitespace errors. 2018-07-11 20:48:38 +00:00
public.bzl Move Views into Sample and Viewer. 2018-08-09 15:25:32 +00:00
README Fix references to https://sites.google.com/site/skiadocs/. 2015-02-03 13:12:54 -02:00
README.chromium Update README.chromium. 2015-06-11 13:19:24 -07:00
whitespace.txt Whitespace change to trigger flutter roller 2018-06-22 01:18:46 +00:00

Skia is a complete 2D graphic library for drawing Text, Geometries, and Images.

See full details, and build instructions, at https://skia.org.