skia2/include/gpu
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
..
gl Add macro to decide GrGLStandard 2019-03-19 18:19:12 +00:00
mock Enable wide color support in CCPR 2019-01-10 13:53:31 +00:00
mtl added Metal support to GrBackendSurface 2018-06-29 13:32:17 +00:00
vk Pass render target VkImage in GrVkDrawableInfo 2019-02-26 17:07:30 +00:00
GrBackendDrawableInfo.h Add ability for an SkDevice to handle the drawing of an SkDrawable. 2018-10-19 15:21:54 +00:00
GrBackendSemaphore.h Move GrBackend enum to enum class. 2018-10-12 14:01:58 +00:00
GrBackendSurface.h Make vulkan GrBackendFormats with ycbcr external texture types. 2019-03-11 14:01:20 +00:00
GrBlend.h Reland "make enum santizer fatal" 2018-11-06 17:31:00 +00:00
GrConfig.h Add cap to number of oplists we execute before flushing to the gpu. 2018-12-07 17:57:07 +00:00
GrContext.h Move DrawingManager to RecordingContext 2019-02-22 17:25:00 +00:00
GrContextOptions.h Reland "Disable coverage counting by default" 2019-03-18 16:22:47 +00:00
GrContextThreadSafeProxy.h Move "matches" from GrContextThreadSafeProxy to GrContext_Base 2019-02-07 19:26:50 +00:00
GrDriverBugWorkarounds.h Reland "Add driver bug workarounds to GrCaps" 2018-05-14 23:46:49 +00:00
GrDriverBugWorkaroundsAutogen.h Add disable_texture_storage workaround 2018-08-22 23:56:23 +00:00
GrGpuResource.h Make it safe to enter the cache from a GrTexture idle proc. 2019-02-22 16:12:35 +00:00
GrRenderTarget.h Restore support for multisample locations 2019-03-07 22:00:48 +00:00
GrSamplerState.h Revert "Move some Gr headers from include/gpu to include/private and src/gpu." 2018-12-11 19:01:41 +00:00
GrSurface.h Default implementation of onSetRelease() on GrSurface 2019-03-05 13:24:52 +00:00
GrTexture.h Revert "Revert "Distinguish between "flushed" and "finished" idle state callbacks on GrTexture."" 2019-03-15 16:24:28 +00:00
GrTypes.h Remove a few semicolons. 2019-02-11 14:40:37 +00:00