2011-07-28 14:26:00 +00:00
|
|
|
|
|
|
|
/*
|
|
|
|
* Copyright 2011 Google Inc.
|
|
|
|
*
|
|
|
|
* Use of this source code is governed by a BSD-style license that can be
|
|
|
|
* found in the LICENSE file.
|
|
|
|
*/
|
2011-01-19 19:04:04 +00:00
|
|
|
#ifndef GrGLConfig_chrome_DEFINED
|
|
|
|
#define GrGLConfig_chrome_DEFINED
|
|
|
|
|
2011-02-17 21:47:25 +00:00
|
|
|
// glGetError() forces a sync with gpu process on chrome
|
2012-01-19 16:16:52 +00:00
|
|
|
#define GR_GL_CHECK_ERROR_START 0
|
2011-04-19 21:15:09 +00:00
|
|
|
|
2011-07-01 15:21:59 +00:00
|
|
|
// cmd buffer allocates memory and memsets it to zero when it sees glBufferData
|
|
|
|
// with NULL.
|
2012-01-19 16:16:52 +00:00
|
|
|
#define GR_GL_USE_BUFFER_DATA_NULL_HINT 0
|
2011-07-01 15:21:59 +00:00
|
|
|
|
2012-01-19 16:16:52 +00:00
|
|
|
// Check error is even more expensive in chrome (cmd buffer flush). The
|
|
|
|
// compositor also doesn't check its allocations.
|
|
|
|
#define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0
|
2011-09-01 13:28:16 +00:00
|
|
|
|
2012-02-07 16:06:47 +00:00
|
|
|
// CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes.
|
|
|
|
#define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 1
|
|
|
|
|
2013-02-21 16:34:21 +00:00
|
|
|
// Non-VBO vertices and indices are not allowed in Chromium.
|
|
|
|
#define GR_GL_MUST_USE_VBO 1
|
|
|
|
|
2013-02-28 17:11:11 +00:00
|
|
|
// Use updated Khronos signature for glShaderSource
|
|
|
|
// (const char* const instead of char**).
|
2013-02-28 19:26:04 +00:00
|
|
|
#define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1
|
2013-02-28 17:11:11 +00:00
|
|
|
|
2015-06-24 22:04:13 +00:00
|
|
|
#if !defined(GR_GL_IGNORE_ES3_MSAA)
|
|
|
|
#define GR_GL_IGNORE_ES3_MSAA 1
|
|
|
|
#endif
|
|
|
|
|
2011-01-19 19:04:04 +00:00
|
|
|
#endif
|