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

Unified Diff: gpu/khronos_glcts_support/native/egl_native_windowless.cc

Issue 1929973003: 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/gpu.gyp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
}
};
« no previous file with comments | « gpu/gpu.gyp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698