1
2---
3title: "Chromium Command Buffer"
4linkTitle: "Chromium Command Buffer"
5
6---
7
8
9It is possible to run Skia's correctness tool, dm, and benchmarking tool,
10nanobench, on top of the GL ES interface provided by Chromium's command
11buffer.
12
13The Skia tools are always built with this support. They dynamically load
14the command buffer as a shared library and thus no GYP/GN flags are
15required.
16
17The command buffer standalone shared library is built in a Chromium checkout
18by building the `command_buffer_gles2` target. The command buffer should be
19built with the `is_component_build` in GN set to false. This will produce a .so,
20.dylib, or .dll depending on the target OS. This should be copied alongside
21the dm or nanobench executable built from a Skia repository.
22
23Both tools have a `commandbuffer` config which can be used with the `--config`
24option to the tool and will run the tests or benchmarks using the command buffer
25library. Unit tests in dm always run on all appropriate and available backends
26regardless of the `--config` flag.
27
28
29