gl2chromium.h 802 B

1234567891011121314151617181920212223242526272829
  1. // Copyright (c) 2012 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. // This file contains Chromium-specific GLES2 declarations.
  5. #ifndef GPU_GLES2_GL2CHROMIUM_H_
  6. #define GPU_GLES2_GL2CHROMIUM_H_
  7. #include <GLES2/gl2platform.h>
  8. #define GL_CONTEXT_LOST 0x300E
  9. #if defined(GLES2_USE_MOJO)
  10. #define GLES2_GET_FUN(name) MojoGLES2gl ## name
  11. #else
  12. // Because we are using both the real system GL and our own
  13. // emulated GL we need to use different names to avoid conflicts.
  14. #if defined(GLES2_USE_CPP_BINDINGS)
  15. #define GLES2_GET_FUN(name) gles2::GetGLContext()->name
  16. #else
  17. #define GLES2_GET_FUN(name) GLES2 ## name
  18. #endif
  19. #endif
  20. #include <GLES2/gl2chromium_autogen.h>
  21. #endif // GPU_GLES2_GL2CHROMIUM_H_