• Home
Name Date Size #Lines LOC

..--

README.mdD03-May-20241 KiB4226

VERSIOND03-May-20241

README.md

1Text Blob Traces
2================
3
4Create
5------
6
7Download and build Chromium as usual, but add the line
8
9    #define SK_CAPTURE_DRAW_TEXT_BLOB
10
11to the top of `third_party/skia/src/core/SkRemoteGlyphCache.h`.
12Run `chrome --no-sandbox URL` Trace files will be written to the current
13working directory.  Use `blob_cache_sim` to check the contents of the trace.
14
15Upload
16------
17
18To upload a new version of the assets, first place the new version in the
19directory `text_blob_traces`, then execute:
20
21    infra/bots/assets/assets.py upload -t text_blob_traces text_blob_traces
22
23Then commit the file `infra/bots/assets/text_blob_traces/VERSION`
24
25Download
26--------
27
28Execute:
29
30    infra/bots/assets/assets.py download -t text_blob_traces text_blob_traces
31
32Run 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/*
42