Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(540)

Unified Diff: gpu/gles2_conform_support/egl/test_support.h

Issue 1714883002: command_buffer_gles2: Implement EGL default Display as a global object (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@command_buffer_gles2-multiple-contexts
Patch Set: rebase Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/gles2_conform_support/egl/surface.cc ('k') | gpu/gles2_conform_support/egl/test_support.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/gles2_conform_support/egl/test_support.h
diff --git a/gpu/gles2_conform_support/egl/test_support.h b/gpu/gles2_conform_support/egl/test_support.h
index b1a70885bdcd7c58e0a3dbee3d58e022dd8ff421..f5cca7f53f65b53d7492788fea152f26c40699d1 100644
--- a/gpu/gles2_conform_support/egl/test_support.h
+++ b/gpu/gles2_conform_support/egl/test_support.h
@@ -5,6 +5,8 @@
#ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_
#define GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_
+#include <EGL/egl.h>
+
#if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY)
// A variable used for communicating whether the app has initialized the global
// variables.
@@ -16,4 +18,15 @@
EGLAPI extern EGLAPIENTRY bool g_command_buffer_gles_has_atexit_manager;
#endif
+extern "C" {
+// A function to support GTF windowless tests. gles2_conform_test_windowless and
+// khronos_glcts_test_windowless create "windowless" native windows and render
+// to those. The test runners do not at the moment implement creating said
+// windowless native windows. This call sets the system so that it will create a
+// pbuffer when eglCreateWindow is called.
+EGLAPI EGLAPIENTRY void
+CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay eglDisplay,
+ EGLint width,
+ EGLint height);
+}
#endif
« no previous file with comments | « gpu/gles2_conform_support/egl/surface.cc ('k') | gpu/gles2_conform_support/egl/test_support.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698