| 1 |
Text Blob Traces |
| 2 |
================ |
| 3 |
|
| 4 |
Create |
| 5 |
------ |
| 6 |
|
| 7 |
Download and build Chromium as usual, but add the line |
| 8 |
|
| 9 |
#define SK_CAPTURE_DRAW_TEXT_BLOB |
| 10 |
|
| 11 |
to the top of `third_party/skia/src/core/SkRemoteGlyphCache.h`. |
| 12 |
Run `chrome --no-sandbox URL` Trace files will be written to the current |
| 13 |
working directory. Use `blob_cache_sim` to check the contents of the trace. |
| 14 |
|
| 15 |
Upload |
| 16 |
------ |
| 17 |
|
| 18 |
To upload a new version of the assets, first place the new version in the |
| 19 |
directory `text_blob_traces`, then execute: |
| 20 |
|
| 21 |
infra/bots/assets/assets.py upload -t text_blob_traces text_blob_traces |
| 22 |
|
| 23 |
Then commit the file `infra/bots/assets/text_blob_traces/VERSION` |
| 24 |
|
| 25 |
Download |
| 26 |
-------- |
| 27 |
|
| 28 |
Execute: |
| 29 |
|
| 30 |
infra/bots/assets/assets.py download -t text_blob_traces text_blob_traces |
| 31 |
|
| 32 |
Run Bench and Simulator |
| 33 |
----------------------- |
| 34 |
|
| 35 |
tools/git-sync-deps |
| 36 |
bin/gn gen out/release --args='is_debug=false' |
| 37 |
ninja -C out/release nanobench blob_cache_sim |
| 38 |
|
| 39 |
out/release/nanobench -m SkDiffBench --texttraces text_blob_traces -q |
| 40 |
|
| 41 |
out/release/blob_cache_sim text_blob_traces/* |