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

Side by Side 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: 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2016 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "test_support.h" 5 #include "test_support.h"
6 #include "gpu/gles2_conform_support/egl/display.h"
7 #include "gpu/gles2_conform_support/egl/thread_state.h"
6 8
7 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY) 9 #if defined(COMPONENT_BUILD) && defined(COMMAND_BUFFER_GLES_LIB_SUPPORT_ONLY)
8 bool g_command_buffer_gles_has_atexit_manager; 10 bool g_command_buffer_gles_has_atexit_manager;
9 #endif 11 #endif
12
13 extern "C" {
14 EGLAPI void EGLAPIENTRY
15 CommandBufferGLESSetNextCreateWindowSurfaceCreatesPBuffer(EGLDisplay dpy,
16 EGLint width,
17 EGLint height) {
18 egl::ThreadState* ts = egl::ThreadState::Get();
19 egl::Display* display = ts->GetDisplay(dpy);
20 if (!display)
21 return;
22 display->SetNextCreateWindowSurfaceCreatesPBuffer(width, height);
23 }
24 }
OLDNEW
« no previous file with comments | « gpu/gles2_conform_support/egl/test_support.h ('k') | gpu/gles2_conform_support/egl/thread_state.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698