OLD | NEW |
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_ | 5 #ifndef GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_ |
6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_ | 6 #define GPU_GLES2_CONFORM_SUPPORT_EGL_TEST_SUPPORT_H_ |
7 | 7 |
8 #include <EGL/egl.h> | |
9 | |
10 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) | 8 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) |
11 // A variable used for communicating whether the app has initialized the global | 9 // A variable used for communicating whether the app has initialized the global |
12 // variables. | 10 // variables. |
13 // On component build, the dynamic library and the Chromium test | 11 // On component build, the dynamic library and the Chromium test |
14 // runner executable refer to the same global variables. Any non-Chromium client | 12 // runner executable refer to the same global variables. Any non-Chromium client |
15 // of the dynamic library will not initialize the globabl variables. | 13 // of the dynamic library will not initialize the globabl variables. |
16 // On non-component (static) build, the library and the runner have distinct | 14 // On non-component (static) build, the library and the runner have distinct |
17 // global variables. | 15 // global variables. |
18 EGLAPI extern EGLAPIENTRY bool g_command_buffer_gles_has_atexit_manager; | 16 EGLAPI extern EGLAPIENTRY bool g_command_buffer_gles_has_atexit_manager; |
19 #endif | 17 #endif |
20 | 18 |
21 extern "C" { | |
22 // A function to support GTF windowless tests. gles2_conform_test_windowless and | |
23 // khronos_glcts_test_windowless create "windowless" native windows and render | |
24 // to those. The test runners do not at the moment implement creating said | |
25 // windowless native windows. This call sets the system so that it will create a | |
26 // pbuffer when eglCreateWindow is called. | |
27 EGLAPI EGLAPIENTRY void | |
28 CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay eglDisplay, | |
29 EGLint width, | |
30 EGLint height); | |
31 } | |
32 #endif | 19 #endif |
OLD | NEW |