update ANGLE docs for GN, current test tools

BUG=skia:

GOLD_TRYBOT_URL= https://gold.skia.org/search?issue=4454
NOTRY=true
DOCS_PREVIEW= https://skia.org/?cl=4454

Change-Id: If9e5d763b599db358597e79e090f7a8aba618e10
Reviewed-on: https://skia-review.googlesource.com/4454
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Mike Klein <mtklein@chromium.org>
This commit is contained in:
Mike Klein 2016-11-07 09:45:07 -05:00 committed by Skia Commit-Bot
parent d6214d4f46
commit 25495f7706
2 changed files with 22 additions and 32 deletions

View File

@ -0,0 +1,22 @@
ANGLE
=====
Introduction
------------
ANGLE converts OpenGL ES 2 or 3 calls to DirectX 9, 11, or OpenGL calls. These
instructions document how to use ANGLE instead of the native OpenGL backend on
Windows or Linux.
Details
-------
`gclient sync` downloads ANGLE's source alongside Skia's other test-only dependencies.
To build Skia testing tools against ANGLE, add `skia_use_angle = true` to your
`args.gn` file (or run `gn args` to edit it).
When running tools, use `--config angle_<backend>_<frontend>`, e.g.
out/Debug/dm --src gm --config angle_d3d11_es2
out/Release/nanobench --config angle_gl_es2

View File

@ -1,32 +0,0 @@
Using ANGLE on Windows
======================
Introduction
------------
ANGLE converts OpenGL ES 2.0 calls to DirectX 9 calls. These instructions
document how to use ANGLE instead of the native OpenGL backend on Windows.
Details
-------
Angle is now downloaded as a part of Skia according to the `DEPS` file.
Add `skia_angle=1` to your `GYP_DEFINES` environment variable.
Run:
python gyp_skia
Remember
--------
In SampleApp you will need to use the 'D' key to get to the ANGLE backend unless you enable the `DEFAULT_TO_ANGLE` #define in `SampleApp.cpp`.
* Use “--angle” to enable ANGLE in gm.
* Use “--config ANGLE” to use ANGLE in bench.
* Use "--config angle" to use ANGLE in bench_pictures and render_pictures.
ANGLE will automatically be compiled into the GLInterfaceValidation test.