diff options
author | bsalomon <bsalomon@google.com> | 2016-11-04 08:36:00 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-11-04 08:36:00 -0700 |
commit | bab7945563c2b01f882b37a22b7b3c7ff0e8a3d8 (patch) | |
tree | e9f5e0c1d0d0b9ce26ba8388eda9e83ab542b93e /site | |
parent | 37be4d013520906891c1a0908874314d1fdce265 (diff) |
Add documentation for using testing using the command buffer
GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=2479833003
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=2479833003
Review-Url: https://codereview.chromium.org/2479833003
Diffstat (limited to 'site')
-rw-r--r-- | site/dev/chrome/commandbuffer.md | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/site/dev/chrome/commandbuffer.md b/site/dev/chrome/commandbuffer.md new file mode 100644 index 0000000000..2afa5c9194 --- /dev/null +++ b/site/dev/chrome/commandbuffer.md @@ -0,0 +1,22 @@ +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 +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, +.dylib, or .dll depending on the target OS. This should be copied alongside +the dm or nanobench executable built from a Skia repository. + +Both tools have a 'commandbuffer' config which can be used with the --config +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 +regardless of the --config flag. + |