OLD | NEW |
1 | 1 |
2 /* | 2 /* |
3 * Copyright 2011 Google Inc. | 3 * Copyright 2011 Google Inc. |
4 * | 4 * |
5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
7 */ | 7 */ |
8 | 8 |
9 | 9 |
10 | 10 |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
86 * function, and then checking that the error is still GL_NO_ERROR. When the | 86 * function, and then checking that the error is still GL_NO_ERROR. When the |
87 * value is 0 we will assume no error was generated without checking. | 87 * value is 0 we will assume no error was generated without checking. |
88 * | 88 * |
89 * GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT: We will normally check the FBO status | 89 * GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT: We will normally check the FBO status |
90 * every time we bind a texture or renderbuffer to an FBO. However, in some | 90 * every time we bind a texture or renderbuffer to an FBO. However, in some |
91 * environments CheckFrameBufferStatus is very expensive. If this is set we will | 91 * environments CheckFrameBufferStatus is very expensive. If this is set we will |
92 * check the first time we use a color format or a combination of color / | 92 * check the first time we use a color format or a combination of color / |
93 * stencil formats as attachments. If the FBO is complete we will assume | 93 * stencil formats as attachments. If the FBO is complete we will assume |
94 * subsequent attachments with the same formats are complete as well. | 94 * subsequent attachments with the same formats are complete as well. |
95 * | 95 * |
| 96 * GR_GL_USE_NV_PATH_RENDERING: Enable experimental support for |
| 97 * GL_NV_path_rendering. There are known issues with clipping, non-AA paths, and |
| 98 * perspective. |
| 99 * |
96 * GR_GL_MUST_USE_VBO: Indicates that all vertices and indices must be rendered | 100 * GR_GL_MUST_USE_VBO: Indicates that all vertices and indices must be rendered |
97 * from VBOs. Chromium's command buffer doesn't allow glVertexAttribArray with | 101 * from VBOs. Chromium's command buffer doesn't allow glVertexAttribArray with |
98 * ARARY_BUFFER 0 bound or glDrawElements with ELEMENT_ARRAY_BUFFER 0 bound. | 102 * ARARY_BUFFER 0 bound or glDrawElements with ELEMENT_ARRAY_BUFFER 0 bound. |
99 * | 103 * |
100 * GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE is for compatibility with the new versi
on | 104 * GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE is for compatibility with the new versi
on |
101 * of the OpenGLES2.0 headers from Khronos. glShaderSource now takes a const ch
ar * const *, | 105 * of the OpenGLES2.0 headers from Khronos. glShaderSource now takes a const ch
ar * const *, |
102 * instead of a const char | 106 * instead of a const char |
103 */ | 107 */ |
104 | 108 |
105 #if !defined(GR_GL_LOG_CALLS) | 109 #if !defined(GR_GL_LOG_CALLS) |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
147 #endif | 151 #endif |
148 | 152 |
149 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR) | 153 #if !defined(GR_GL_CHECK_ALLOC_WITH_GET_ERROR) |
150 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1 | 154 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 1 |
151 #endif | 155 #endif |
152 | 156 |
153 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT) | 157 #if !defined(GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT) |
154 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0 | 158 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 0 |
155 #endif | 159 #endif |
156 | 160 |
| 161 #if !defined(GR_GL_USE_NV_PATH_RENDERING) |
| 162 #define GR_GL_USE_NV_PATH_RENDERING 0 |
| 163 #endif |
| 164 |
157 #if !defined(GR_GL_MUST_USE_VBO) | 165 #if !defined(GR_GL_MUST_USE_VBO) |
158 #define GR_GL_MUST_USE_VBO 0 | 166 #define GR_GL_MUST_USE_VBO 0 |
159 #endif | 167 #endif |
160 | 168 |
161 #if !defined(GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE) | 169 #if !defined(GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE) |
162 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 0 | 170 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 0 |
163 #endif | 171 #endif |
164 | 172 |
165 /** | 173 /** |
166 * There is a strange bug that occurs on Macs with NVIDIA GPUs. We don't | 174 * There is a strange bug that occurs on Macs with NVIDIA GPUs. We don't |
(...skipping 18 matching lines...) Expand all Loading... |
185 * trick every 128 array buffer uploads. | 193 * trick every 128 array buffer uploads. |
186 * | 194 * |
187 * Hopefully we will understand this better and have a cleaner fix or get a | 195 * Hopefully we will understand this better and have a cleaner fix or get a |
188 * OS/driver level fix. | 196 * OS/driver level fix. |
189 */ | 197 */ |
190 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ | 198 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ |
191 (defined(SK_BUILD_FOR_MAC) && \ | 199 (defined(SK_BUILD_FOR_MAC) && \ |
192 !GR_GL_USE_BUFFER_DATA_NULL_HINT) | 200 !GR_GL_USE_BUFFER_DATA_NULL_HINT) |
193 | 201 |
194 #endif | 202 #endif |
OLD | NEW |