skia2/include
Kevin Lubick 8aa203c1d8 Add macro to decide GrGLStandard
This allows us to remove certain interfaces at compile time.

This replaces most (all?) of the cases where it was
if (gl) else [implicit gles] to be explicitly
if (gl) else if (gles)
in preparation for adding a WebGL standard.

For consistency, I tried to check first for GL, then for
GLES, which involved re-arranging a few if blocks.

PS 3 removes about 1.2KB (0.4 KB gzipped) from CanvasKit by
removing the GrGLInterface related checks from
GrGlInterface::validate()

PS 8 removes a total of 6.0 KB (2.6 KB gzipped) from
GrGlInterface::validate() and GrGlCaps::*

Bug: skia:8378
Change-Id: Ia91b732d888907f5d94b0eac8ca023084999fa7e
Reviewed-on: https://skia-review.googlesource.com/c/skia/+/201604
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Kevin Lubick <kjlubick@google.com>
2019-03-19 18:19:12 +00:00
..
android Allow setting an SkColorSpace on SkAnimatedImage 2019-02-22 18:58:05 +00:00
atlastext pass a font to GlyphRunBuilder 2019-01-02 21:02:33 +00:00
c expand imageinfo in C api, start on colorspace 2018-09-28 17:52:59 +00:00
codec Remove a few semicolons. 2019-02-11 14:40:37 +00:00
config remove unused parts of SkTypes.h 2018-06-08 23:53:57 +00:00
core Add SK_API to ImageSetEntry 2019-03-19 18:04:12 +00:00
docs SkPDF: clean up public header 2019-01-02 15:55:33 +00:00
effects update docs for SkLumaColorFilter 2019-03-14 18:41:41 +00:00
encode Remove a few semicolons. 2019-02-11 14:40:37 +00:00
gpu Add macro to decide GrGLStandard 2019-03-19 18:19:12 +00:00
pathops fixup winding contours 2018-08-17 14:01:51 +00:00
ports Reland "Add SkFontMgr implementation for Fuchsia" 2018-12-07 01:47:05 +00:00
private Reland "Disable coverage counting by default" 2019-03-18 16:22:47 +00:00
svg [SVGCanvas] Clean up public factories 2019-02-14 19:17:35 +00:00
third_party/vulkan Move vulkan headers from third_party to include/third_party. 2018-12-12 14:16:43 +00:00
utils Reland "Reland "Update SkCanvas' experimental SkiaRenderer API"" 2019-03-19 14:18:52 +00:00