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

Unified Diff: gpu/gles2_conform_support/egl/test_support.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: win fixes 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
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);
+}
+}

Powered by Google App Engine
This is Rietveld 408576698