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

Side by Side Diff: gpu/gles2_conform_support/egl/test_support.h

Issue 1878133003: Revert of 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: Created 4 years, 8 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
OLDNEW
« 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