| 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 12 matching lines...) Expand all Loading... |
| 23 #if !defined(GR_GL_FUNCTION_TYPE) | 23 #if !defined(GR_GL_FUNCTION_TYPE) |
| 24 #define GR_GL_FUNCTION_TYPE | 24 #define GR_GL_FUNCTION_TYPE |
| 25 #endif | 25 #endif |
| 26 | 26 |
| 27 /** | 27 /** |
| 28 * The following are optional defines that can be enabled at the compiler | 28 * The following are optional defines that can be enabled at the compiler |
| 29 * command line, in a IDE project, in a GrUserConfig.h file, or in a GL custom | 29 * command line, in a IDE project, in a GrUserConfig.h file, or in a GL custom |
| 30 * file (if one is in use). If a GR_GL_CUSTOM_SETUP_HEADER is used they can | 30 * file (if one is in use). If a GR_GL_CUSTOM_SETUP_HEADER is used they can |
| 31 * also be placed there. | 31 * also be placed there. |
| 32 * | 32 * |
| 33 * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using GrPrintf. Defaults to | 33 * GR_GL_LOG_CALLS: if 1 Gr can print every GL call using SkDebugf. Defaults to |
| 34 * 0. Logging can be enabled and disabled at runtime using a debugger via to | 34 * 0. Logging can be enabled and disabled at runtime using a debugger via to |
| 35 * global gLogCallsGL. The initial value of gLogCallsGL is controlled by | 35 * global gLogCallsGL. The initial value of gLogCallsGL is controlled by |
| 36 * GR_GL_LOG_CALLS_START. | 36 * GR_GL_LOG_CALLS_START. |
| 37 * | 37 * |
| 38 * GR_GL_LOG_CALLS_START: controls the initial value of gLogCallsGL when | 38 * GR_GL_LOG_CALLS_START: controls the initial value of gLogCallsGL when |
| 39 * GR_GL_LOG_CALLS is 1. Defaults to 0. | 39 * GR_GL_LOG_CALLS is 1. Defaults to 0. |
| 40 * | 40 * |
| 41 * GR_GL_CHECK_ERROR: if enabled Gr can do a glGetError() after every GL call. | 41 * GR_GL_CHECK_ERROR: if enabled Gr can do a glGetError() after every GL call. |
| 42 * Defaults to 1 if SK_DEBUG is set, otherwise 0. When GR_GL_CHECK_ERROR is 1 | 42 * Defaults to 1 if SK_DEBUG is set, otherwise 0. When GR_GL_CHECK_ERROR is 1 |
| 43 * this can be toggled in a debugger using the gCheckErrorGL global. The initial | 43 * this can be toggled in a debugger using the gCheckErrorGL global. The initial |
| (...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 175 * trick every 128 array buffer uploads. | 175 * trick every 128 array buffer uploads. |
| 176 * | 176 * |
| 177 * Hopefully we will understand this better and have a cleaner fix or get a | 177 * Hopefully we will understand this better and have a cleaner fix or get a |
| 178 * OS/driver level fix. | 178 * OS/driver level fix. |
| 179 */ | 179 */ |
| 180 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ | 180 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ |
| 181 (defined(SK_BUILD_FOR_MAC) && \ | 181 (defined(SK_BUILD_FOR_MAC) && \ |
| 182 !GR_GL_USE_BUFFER_DATA_NULL_HINT) | 182 !GR_GL_USE_BUFFER_DATA_NULL_HINT) |
| 183 | 183 |
| 184 #endif | 184 #endif |
| OLD | NEW |