diff --git a/infra/bots/assets/text_blob_traces/README.md b/infra/bots/assets/text_blob_traces/README.md new file mode 100644 index 0000000000..b8e335c7c6 --- /dev/null +++ b/infra/bots/assets/text_blob_traces/README.md @@ -0,0 +1,41 @@ +Text Blob Traces +================ + +Create +------ + +Download and build Chromium as usual, but add the line + + #define SK_CAPTURE_DRAW_TEXT_BLOB + +to the top of `third_party/skia/src/core/SkRemoteGlyphCache.h`. +Run `chrome --no-sandbox URL` Trace files will be written to the current +working directory. Use `blob_cache_sim` to check the contents of the trace. + +Upload +------ + +To upload a new version of the assets, first place the new version in the +directory `text_blob_traces`, then execute: + + infra/bots/assets/assets.py upload -t text_blob_traces text_blob_traces + +Then commit the file `infra/bots/assets/text_blob_traces/VERSION` + +Download +-------- + +Execute: + + infra/bots/assets/assets.py download -t text_blob_traces text_blob_traces + +Run Bench and Simulator +----------------------- + + tools/git-sync-deps + bin/gn gen out/release --args='is_debug=false' + ninja -C out/release nanobench blob_cache_sim + + out/release/nanobench -m SkDiffBench --texttraces text_blob_traces -q + + out/release/blob_cache_sim text_blob_traces/* diff --git a/infra/bots/assets/text_blob_traces/VERSION b/infra/bots/assets/text_blob_traces/VERSION new file mode 100644 index 0000000000..c227083464 --- /dev/null +++ b/infra/bots/assets/text_blob_traces/VERSION @@ -0,0 +1 @@ +0 \ No newline at end of file