Home | History | Annotate | Download | only in gl
      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 // 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
     22 // compositor also doesn't check its allocations.
     23 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR            0
     24 
     25 // CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes.
     26 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT      1
     27 
     28 // Non-VBO vertices and indices are not allowed in Chromium.
     29 #define GR_GL_MUST_USE_VBO                          1
     30 
     31 // Use updated Khronos signature for glShaderSource
     32 // (const char* const instead of char**).
     33 #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE       1
     34 
     35 #if !defined(GR_GL_IGNORE_ES3_MSAA)
     36     #define GR_GL_IGNORE_ES3_MSAA 1
     37 #endif
     38 
     39 #endif
     40