egl_native_windowless.cc 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. #include "gpu/gles2_conform_support/egl/test_support.h"
  5. extern "C" {
  6. #if defined(GLES2_CONFORM_SUPPORT_ONLY)
  7. #include "gpu/gles2_conform_support/gtf/gtf_stubs.h"
  8. #else
  9. #include "third_party/gles2_conform/GTF_ES/glsl/GTF/Source/eglNative.h" // nogncheck
  10. #endif
  11. GTFbool GTFNativeCreateDisplay(EGLNativeDisplayType *pNativeDisplay) {
  12. *pNativeDisplay = EGL_DEFAULT_DISPLAY;
  13. return GTFtrue;
  14. }
  15. void GTFNativeDestroyDisplay(EGLNativeDisplayType nativeDisplay) {
  16. // Nothing to destroy since we are using EGL_DEFAULT_DISPLAY
  17. }
  18. GTFbool GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay,
  19. EGLDisplay eglDisplay, EGLConfig eglConfig,
  20. const char* title, int width, int height,
  21. EGLNativeWindowType *pNativeWindow) {
  22. CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(eglDisplay, width,
  23. height);
  24. return GTFtrue;
  25. }
  26. void GTFNativeDestroyWindow(EGLNativeDisplayType nativeDisplay,
  27. EGLNativeWindowType nativeWindow) {
  28. }
  29. EGLImageKHR GTFCreateEGLImage(int width, int height,
  30. GLenum format, GLenum type) {
  31. return (EGLImageKHR)0;
  32. }
  33. void GTFDestroyEGLImage(EGLImageKHR image) {
  34. }
  35. } // extern "C"