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 16813c2de6b84d67fa6f23ca2b62b4c60237a997..0bed202b0a847846ee939d9d5b27e9d3aa25cd7c 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/test_support.h" |
+#include "gpu/gles2_conform_support/egl/display.h" |
#include "third_party/khronos_glcts/framework/egl/tcuEglPlatform.hpp" |
@@ -74,9 +74,9 @@ |
int height, |
qpVisibility visibility) override { |
tcu::egl::Display& eglDisplay = dpy.getEglDisplay(); |
- EGLDisplay display = eglDisplay.getEGLDisplay(); |
- CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(eglDisplay, width, |
- height); |
+ egl::Display* display = |
+ static_cast<egl::Display*>(eglDisplay.getEGLDisplay()); |
+ display->SetCreateOffscreen(width, height); |
return new Window(eglDisplay, config, attribList, width, height); |
} |
}; |