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 #ifndef GrGLConfig_chrome_DEFINED | 8 #ifndef GrGLConfig_chrome_DEFINED |
9 #define GrGLConfig_chrome_DEFINED | 9 #define GrGLConfig_chrome_DEFINED |
10 | 10 |
11 // glGetError() forces a sync with gpu process on chrome | 11 // glGetError() forces a sync with gpu process on chrome |
12 #define GR_GL_CHECK_ERROR_START 0 | 12 #define GR_GL_CHECK_ERROR_START 0 |
13 | 13 |
14 // cmd buffer allocates memory and memsets it to zero when it sees glBufferData | 14 // cmd buffer allocates memory and memsets it to zero when it sees glBufferData |
15 // with NULL. | 15 // with NULL. |
16 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0 | 16 #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0 |
17 | 17 |
18 // chrome uses this to set the context on each GL call. | |
19 #define GR_GL_PER_GL_FUNC_CALLBACK 1 | |
20 | |
21 // Check error is even more expensive in chrome (cmd buffer flush). The | 18 // Check error is even more expensive in chrome (cmd buffer flush). The |
22 // compositor also doesn't check its allocations. | 19 // compositor also doesn't check its allocations. |
23 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 | 20 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0 |
24 | 21 |
25 // CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes. | 22 // CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes. |
26 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 1 | 23 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 1 |
27 | 24 |
28 // Non-VBO vertices and indices are not allowed in Chromium. | 25 // Non-VBO vertices and indices are not allowed in Chromium. |
29 #define GR_GL_MUST_USE_VBO 1 | 26 #define GR_GL_MUST_USE_VBO 1 |
30 | 27 |
31 // Use updated Khronos signature for glShaderSource | 28 // Use updated Khronos signature for glShaderSource |
32 // (const char* const instead of char**). | 29 // (const char* const instead of char**). |
33 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1 | 30 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1 |
34 | 31 |
35 #if !defined(GR_GL_IGNORE_ES3_MSAA) | 32 #if !defined(GR_GL_IGNORE_ES3_MSAA) |
36 #define GR_GL_IGNORE_ES3_MSAA 1 | 33 #define GR_GL_IGNORE_ES3_MSAA 1 |
37 #endif | 34 #endif |
38 | 35 |
39 #endif | 36 #endif |
OLD | NEW |