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