8aa203c1d8
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> |
||
---|---|---|
.. | ||
GrGLAssembleHelpers.h | ||
GrGLAssembleInterface.h | ||
GrGLConfig_chrome.h | ||
GrGLConfig.h | ||
GrGLExtensions.h | ||
GrGLFunctions.h | ||
GrGLInterface.h | ||
GrGLTypes.h |