| Index: include/gpu/gl/GrGLConfig.h
|
| diff --git a/include/gpu/gl/GrGLConfig.h b/include/gpu/gl/GrGLConfig.h
|
| index 4b3ab8b258424be1768a7ddede3081a9ee84894d..444be00f158d26a912f0ae4b256e7a40a07d6b4e 100644
|
| --- a/include/gpu/gl/GrGLConfig.h
|
| +++ b/include/gpu/gl/GrGLConfig.h
|
| @@ -45,6 +45,12 @@
|
| *
|
| * GR_GL_CHECK_ERROR_START: controls the initial value of gCheckErrorGL
|
| * when GR_GL_CHECK_ERROR is 1. Defaults to 1.
|
| + *
|
| + * GR_GL_NO_CONSTANT_ATTRIBUTES: if this evaluates to true then the GL backend
|
| + * will use uniforms instead of attributes in all cases when there is not
|
| + * per-vertex data. This is important when the underlying GL implementation
|
| + * doesn't actually support immediate style attribute values (e.g. when
|
| + * the GL stream is converted to DX as in ANGLE on Chrome). Defaults to 0.
|
| *
|
| * GR_GL_USE_BUFFER_DATA_NULL_HINT: When specifing new data for a vertex/index
|
| * buffer that replaces old data Ganesh can give a hint to the driver that the
|
| @@ -120,6 +126,10 @@
|
| #define GR_GL_CHECK_ERROR_START 1
|
| #endif
|
|
|
| +#if !defined(GR_GL_NO_CONSTANT_ATTRIBUTES)
|
| + #define GR_GL_NO_CONSTANT_ATTRIBUTES 0
|
| +#endif
|
| +
|
| #if !defined(GR_GL_USE_BUFFER_DATA_NULL_HINT)
|
| #define GR_GL_USE_BUFFER_DATA_NULL_HINT 1
|
| #endif
|
|
|