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

Unified Diff: gpu/gles2_conform_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: 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/native/egl_native_windowless.cc
diff --git a/gpu/gles2_conform_support/native/egl_native_windowless.cc b/gpu/gles2_conform_support/native/egl_native_windowless.cc
index 725d0a05083fb76380e5a9e0bb471925404af07d..94d6dacac28f120c62973542267842f59b8f742b 100644
--- a/gpu/gles2_conform_support/native/egl_native_windowless.cc
+++ b/gpu/gles2_conform_support/native/egl_native_windowless.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "gpu/gles2_conform_support/egl/display.h"
+#include "gpu/gles2_conform_support/egl/test_support.h"
extern "C" {
#if defined(GLES2_CONFORM_SUPPORT_ONLY)
@@ -24,8 +24,8 @@ GTFbool GTFNativeCreateWindow(EGLNativeDisplayType nativeDisplay,
EGLDisplay eglDisplay, EGLConfig eglConfig,
const char* title, int width, int height,
EGLNativeWindowType *pNativeWindow) {
- egl::Display* display = static_cast<egl::Display*>(eglDisplay);
- display->SetCreateOffscreen(width, height);
+ CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(eglDisplay, width,
+ height);
Kimmo Kinnunen 2016/04/11 13:06:52 I went with replicating the existing bad behavior,
return GTFtrue;
}

Powered by Google App Engine
This is Rietveld 408576698