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 // ANGLE creates a temp VB for vertex attributes not specified per-vertex.
     15 #define GR_GL_NO_CONSTANT_ATTRIBUTES                GR_WIN32_BUILD
     16 
     17 // For RGBA teximage/readpixels ANGLE will sw-convert to/from BGRA.
     18 #define GR_GL_RGBA_8888_PIXEL_OPS_SLOW              GR_WIN32_BUILD
     19 
     20 // ANGLE can go faster if the entire fbo is read rather than a subrect
     21 #define GR_GL_FULL_READPIXELS_FASTER_THAN_PARTIAL   GR_WIN32_BUILD
     22 
     23 // cmd buffer allocates memory and memsets it to zero when it sees glBufferData
     24 // with NULL.
     25 #define GR_GL_USE_BUFFER_DATA_NULL_HINT             0
     26 
     27 // chrome uses this to set the context on each GL call.
     28 #define GR_GL_PER_GL_FUNC_CALLBACK                  1
     29 
     30 // Check error is even more expensive in chrome (cmd buffer flush). The
     31 // compositor also doesn't check its allocations.
     32 #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR            0
     33 
     34 // CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes.
     35 #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT      1
     36 
     37 #endif
     38