epoger@google.com | ec3ed6a | 2011-07-28 14:26:00 +0000 | [diff] [blame] | 1 | |
| 2 | /* |
| 3 | * Copyright 2011 Google Inc. |
| 4 | * |
| 5 | * Use of this source code is governed by a BSD-style license that can be |
| 6 | * found in the LICENSE file. |
| 7 | */ |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 8 | #ifndef GrGLConfig_chrome_DEFINED |
| 9 | #define GrGLConfig_chrome_DEFINED |
| 10 | |
bsalomon@google.com | 3723a48 | 2011-02-17 21:47:25 +0000 | [diff] [blame] | 11 | // glGetError() forces a sync with gpu process on chrome |
bsalomon@google.com | 4be283f | 2011-04-19 21:15:09 +0000 | [diff] [blame] | 12 | #define GR_GL_CHECK_ERROR_START 0 |
| 13 | |
| 14 | // ANGLE creates a temp VB for vertex attributes not specified per-vertex. |
| 15 | #define GR_GL_NO_CONSTANT_ATTRIBUTES GR_WIN32_BUILD |
bsalomon@google.com | 3723a48 | 2011-02-17 21:47:25 +0000 | [diff] [blame] | 16 | |
bsalomon@google.com | 0a97be2 | 2011-11-08 19:20:57 +0000 | [diff] [blame^] | 17 | // RGBA Readbacks are a slow path in ANGLE |
| 18 | #define GR_GL_RGBA_8888_READBACK_SLOW GR_WIN32_BUILD |
| 19 | |
bsalomon@google.com | 9ae4429 | 2011-07-01 15:21:59 +0000 | [diff] [blame] | 20 | // cmd buffer allocates memory and memsets it to zero when it sees glBufferData |
| 21 | // with NULL. |
| 22 | #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0 |
| 23 | |
bsalomon@google.com | 56bfc5a | 2011-09-01 13:28:16 +0000 | [diff] [blame] | 24 | // chrome uses this to set the context on each GL call. |
| 25 | #define GR_GL_PER_GL_FUNC_CALLBACK 1 |
| 26 | |
reed@google.com | bf858b7 | 2011-01-19 19:04:04 +0000 | [diff] [blame] | 27 | #endif |