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

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

Issue 1714883002: 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: rebase Created 4 years, 7 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 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);
}
};
« 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