Index: gpu/khronos_glcts_support/native/egl_native_windowless.cc |
diff --git a/gpu/khronos_glcts_support/native/egl_native_windowless.cc b/gpu/khronos_glcts_support/native/egl_native_windowless.cc |
index 0bed202b0a847846ee939d9d5b27e9d3aa25cd7c..548f90b258b642c6695ccad186364819135aa836 100644 |
--- a/gpu/khronos_glcts_support/native/egl_native_windowless.cc |
+++ b/gpu/khronos_glcts_support/native/egl_native_windowless.cc |
@@ -6,7 +6,7 @@ |
// TODO: We may want to phase out the old gles2_conform support in preference |
// of this implementation. So eventually we'll need to move the egl_native |
// stuff here or to a shareable location/path. |
-#include "gpu/gles2_conform_support/egl/display.h" |
+#include "gpu/gles2_conform_support/egl/test_support.h" |
#include "third_party/khronos_glcts/framework/egl/tcuEglPlatform.hpp" |
@@ -74,9 +74,9 @@ class Platform : public tcu::EglPlatform { |
int height, |
qpVisibility visibility) override { |
tcu::egl::Display& eglDisplay = dpy.getEglDisplay(); |
- egl::Display* display = |
- static_cast<egl::Display*>(eglDisplay.getEGLDisplay()); |
- display->SetCreateOffscreen(width, height); |
+ EGLDisplay display = eglDisplay.getEGLDisplay(); |
+ CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(display, width, |
+ height); |
return new Window(eglDisplay, config, attribList, width, height); |
} |
}; |