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 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 * The issue is tracked at: | 198 * The issue is tracked at: |
199 * http://code.google.com/p/chromium/issues/detail?id=114865 | 199 * http://code.google.com/p/chromium/issues/detail?id=114865 |
200 * | 200 * |
201 * When the workaround is enabled we will use the glBufferData / glBufferSubData | 201 * When the workaround is enabled we will use the glBufferData / glBufferSubData |
202 * trick every 128 array buffer uploads. | 202 * trick every 128 array buffer uploads. |
203 * | 203 * |
204 * Hopefully we will understand this better and have a cleaner fix or get a | 204 * Hopefully we will understand this better and have a cleaner fix or get a |
205 * OS/driver level fix. | 205 * OS/driver level fix. |
206 */ | 206 */ |
207 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ | 207 #define GR_GL_MAC_BUFFER_OBJECT_PERFOMANCE_WORKAROUND \ |
208 (GR_MAC_BUILD && \ | 208 (defined(SK_BUILD_FOR_MAC) && \ |
209 !GR_GL_USE_BUFFER_DATA_NULL_HINT) | 209 !GR_GL_USE_BUFFER_DATA_NULL_HINT) |
210 | 210 |
211 #endif | 211 #endif |
OLD | NEW |