Add SkCapabilities object
This describes the capabilities of a particular Skia rendering context
(GPU context, or the CPU backend). At the moment, it only contains the
supported SkSL version (with a new enum added to specify the current
value as "100" and a new ES3 value as "300".
SkCapabilities can not be retrieved from an SkCanvas - the client must
have a concrete way of knowing what their destination device that will
do the actual rendering is (GrCaps or SkSurface).
This CL doesn't make use of the SkCapabilities yet, that's coming in
follow-up CLs that alter the SkSL compiler and SkRuntimeEffect API.
Reviewed-by: Michael Ludwig <email@example.com>
Reviewed-by: Brian Salomon <firstname.lastname@example.org>
Commit-Queue: Brian Osman <email@example.com>
Reviewed-by: John Stiles <firstname.lastname@example.org>
31 files changed