From 60e7962ee93f1f26a0d0f5b6329d58195e00b8a3 Mon Sep 17 00:00:00 2001 From: Hal Canary Date: Thu, 24 Oct 2019 16:42:31 -0400 Subject: [PATCH] Upload text blob traces as assets for the bots Change-Id: I611cd923f21e73d6393678ceeb308626da2498a4 Reviewed-on: https://skia-review.googlesource.com/c/skia/+/250816 Commit-Queue: Hal Canary Reviewed-by: Herb Derby --- infra/bots/assets/text_blob_traces/README.md | 41 ++++++++++++++++++++ infra/bots/assets/text_blob_traces/VERSION | 1 + 2 files changed, 42 insertions(+) create mode 100644 infra/bots/assets/text_blob_traces/README.md create mode 100644 infra/bots/assets/text_blob_traces/VERSION 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