egl_native.cc 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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. extern "C" {
  5. #if defined(GLES2_CONFORM_SUPPORT_ONLY)
  6. #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
  7. #else
  8. #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h" // nogncheck
  9. #endif
  10. GTFbool GTFNativeCreatePixmap(EGLNativeDisplayType nativeDisplay,
  11. EGLDisplay eglDisplay, EGLConfig eglConfig,
  12. const char *title, int width, int height,
  13. EGLNativePixmapType *pNativePixmap) {
  14. return GTFtrue;
  15. }
  16. void GTFNativeDestroyPixmap(EGLNativeDisplayType nativeDisplay,
  17. EGLNativePixmapType nativePixmap) {
  18. }
  19. EGLImageKHR GTFCreateEGLImageExternal(
  20. int width, int height, int format,
  21. float r, float g, float b, float a, void** resource) {
  22. return (EGLImageKHR)0;
  23. }
  24. void GTFDestroyEGLImageExternal(EGLImageKHR image, void* resource) {
  25. }
  26. const int* GTFQueryFormatsEGLImageExternal(void) {
  27. return 0;
  28. }
  29. GTFbool GTFIsAlphaFormatEGLImageExternal(int format) {
  30. return GTFfalse;
  31. }
  32. } // extern "C"