skia2/include/gpu/gl
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
..
GrGLAssembleHelpers.h Break out GrGLAssembleInterface into a few files 2019-03-18 18:57:18 +00:00
GrGLAssembleInterface.h Rename GrGLAssembleFooInterface to GrGLMakeAssembledFooInterface. 2017-12-11 22:03:38 +00:00
GrGLConfig_chrome.h Infer GL null buffer hint usage from whether on command buffer or WebGL. 2018-12-19 20:28:05 +00:00
GrGLConfig.h Infer GL null buffer hint usage from whether on command buffer or WebGL. 2018-12-19 20:28:05 +00:00
GrGLExtensions.h Make GrGLInterface great for Win32 x86 again 2018-08-27 16:09:48 +00:00
GrGLFunctions.h Drop support for GL_EXT_raster_multisample 2019-03-05 11:35:21 +00:00
GrGLInterface.h Drop support for GL_EXT_raster_multisample 2019-03-05 11:35:21 +00:00
GrGLTypes.h Add macro to decide GrGLStandard 2019-03-19 18:19:12 +00:00