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 |
8 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) | 10 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) |
9 // A variable used for communicating whether the app has initialized the global | 11 // A variable used for communicating whether the app has initialized the global |
10 // variables. | 12 // variables. |
11 // On component build, the dynamic library and the Chromium test | 13 // On component build, the dynamic library and the Chromium test |
12 // runner executable refer to the same global variables. Any non-Chromium client | 14 // runner executable refer to the same global variables. Any non-Chromium client |
13 // of the dynamic library will not initialize the globabl variables. | 15 // of the dynamic library will not initialize the globabl variables. |
14 // On non-component (static) build, the library and the runner have distinct | 16 // On non-component (static) build, the library and the runner have distinct |
15 // global variables. | 17 // global variables. |
16 EGLAPI extern EGLAPIENTRY bool g_command_buffer_gles_has_atexit_manager; | 18 EGLAPI extern EGLAPIENTRY bool g_command_buffer_gles_has_atexit_manager; |
17 #endif | 19 #endif |
18 | 20 |
| 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 } |
19 #endif | 32 #endif |
OLD | NEW |