Index: gpu/gles2_conform_support/egl/test_support.cc |
diff --git a/gpu/gles2_conform_support/egl/test_support.cc b/gpu/gles2_conform_support/egl/test_support.cc |
index 938abcfd4545571b0b014f1461d5a99f7e077cef..84fb3ef1377df68166d5275c1971001c1fbdd7c4 100644 |
--- a/gpu/gles2_conform_support/egl/test_support.cc |
+++ b/gpu/gles2_conform_support/egl/test_support.cc |
@@ -3,7 +3,22 @@ |
// found in the LICENSE file. |
#include "test_support.h" |
+#include "gpu/gles2_conform_support/egl/display.h" |
+#include "gpu/gles2_conform_support/egl/thread_state.h" |
#if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) |
bool g_command_buffer_gles_has_atexit_manager; |
#endif |
+ |
+extern "C" { |
+EGLAPI void EGLAPIENTRY |
+CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay dpy, |
+ EGLint width, |
+ EGLint height) { |
+ egl::ThreadState* ts = egl::ThreadState::Get(); |
+ egl::Display* display = ts->GetDisplay(dpy); |
+ if (!display) |
+ return; |
+ display->SetNextCreateWindowSurfaceCreatesPBuffer(width, height); |
+} |
+} |