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 #include "test_support.h" | 5 #include "test_support.h" |
6 #include "gpu/gles2_conform_support/egl/display.h" | |
7 #include "gpu/gles2_conform_support/egl/thread_state.h" | |
8 | 6 |
9 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) | 7 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) |
10 bool g_command_buffer_gles_has_atexit_manager; | 8 bool g_command_buffer_gles_has_atexit_manager; |
11 #endif | 9 #endif |
12 | |
13 extern "C" { | |
14 EGLAPI void EGLAPIENTRY | |
15 CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay dpy, | |
16 EGLint width, | |
17 EGLint height) { | |
18 egl::ThreadState* ts = egl::ThreadState::Get(); | |
19 egl::Display* display = ts->GetDisplay(dpy); | |
20 if (!display) | |
21 return; | |
22 display->SetNextCreateWindowSurfaceCreatesPBuffer(width, height); | |
23 } | |
24 } | |
OLD | NEW |