2016-11-04 15:36:00 +00:00
|
|
|
Chromium Command Buffer
|
|
|
|
==========================
|
|
|
|
|
|
|
|
It is possible to run Skia's correctness tool, dm, and benchmarking tool,
|
|
|
|
nanobench, on top of the GL ES interface provided by Chromium's command
|
|
|
|
buffer.
|
|
|
|
|
|
|
|
The Skia tools are always built with this support. They dynamically load
|
|
|
|
the command buffer as a shared library and thus no GYP/GN flags are
|
|
|
|
required.
|
|
|
|
|
|
|
|
The command buffer standalone shared library is built in a Chromium checkout
|
2018-01-10 14:55:05 +00:00
|
|
|
by building the `command_buffer_gles2` target. The command buffer should be
|
|
|
|
built with the `is_component_build` in GN set to false. This will produce a .so,
|
2016-11-04 15:36:00 +00:00
|
|
|
.dylib, or .dll depending on the target OS. This should be copied alongside
|
|
|
|
the dm or nanobench executable built from a Skia repository.
|
|
|
|
|
2018-01-10 14:55:05 +00:00
|
|
|
Both tools have a `commandbuffer` config which can be used with the `--config`
|
2016-11-04 15:36:00 +00:00
|
|
|
option to the tool and will run the tests or benchmarks using the command buffer
|
|
|
|
library. Unit tests in dm always run on all appropriate and available backends
|
2018-01-10 14:55:05 +00:00
|
|
|
regardless of the `--config` flag.
|
2016-11-04 15:36:00 +00:00
|
|
|
|