GrGLConfig_chrome.h 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. /*
  2. * Copyright 2011 Google Inc.
  3. *
  4. * Use of this source code is governed by a BSD-style license that can be
  5. * found in the LICENSE file.
  6. */
  7. #ifndef GrGLConfig_chrome_DEFINED
  8. #define GrGLConfig_chrome_DEFINED
  9. // glGetError() forces a sync with gpu process on chrome
  10. #define GR_GL_CHECK_ERROR_START 0
  11. // cmd buffer allocates memory and memsets it to zero when it sees glBufferData
  12. // with NULL.
  13. #define GR_GL_USE_BUFFER_DATA_NULL_HINT 0
  14. // Check error is even more expensive in chrome (cmd buffer flush). The
  15. // compositor also doesn't check its allocations.
  16. #define GR_GL_CHECK_ALLOC_WITH_GET_ERROR 0
  17. // CheckFramebufferStatus in chrome synchronizes the gpu and renderer processes.
  18. #define GR_GL_CHECK_FBO_STATUS_ONCE_PER_FORMAT 1
  19. // Non-VBO vertices and indices are not allowed in Chromium.
  20. #define GR_GL_MUST_USE_VBO 1
  21. // Use updated Khronos signature for glShaderSource
  22. // (const char* const instead of char**).
  23. #define GR_GL_USE_NEW_SHADER_SOURCE_SIGNATURE 1
  24. #if !defined(GR_GL_IGNORE_ES3_MSAA)
  25. #define GR_GL_IGNORE_ES3_MSAA 1
  26. #endif
  27. #endif