Looking at the EGL spec, it says for eglGetCurrentDisplay: "The display for the current context in the calling thread, for the current rendering API, is returned." This implies that MakeCurrent binds a display to a Context. There's also pretty clear language for the read/draw Surface as well, that they can only be bound to one Context/thread at a time. Hence we don't need to duplicate this storage in the egl::Thread structure, merely storing a pointer to the current Context, which has access to the read/draw Surface and current Display. BUG=angleproject:1156 Change-Id: Ia3b99d50b3591012c43e851834c1af02ff62a33f Reviewed-on: https://chromium-review.googlesource.com/538865Reviewed-by:Corentin Wallez <cwallez@chromium.org> Commit-Queue: Jamie Madill <jmadill@chromium.org>
| Name |
Last commit
|
Last update |
|---|---|---|
| .. | ||
| entry_points_egl.cpp | Loading commit data... | |
| entry_points_egl.h | Loading commit data... | |
| entry_points_egl_ext.cpp | Loading commit data... | |
| entry_points_egl_ext.h | Loading commit data... | |
| entry_points_gles_2_0_autogen.cpp | Loading commit data... | |
| entry_points_gles_2_0_autogen.h | Loading commit data... | |
| entry_points_gles_2_0_ext.cpp | Loading commit data... | |
| entry_points_gles_2_0_ext.h | Loading commit data... | |
| entry_points_gles_3_0.cpp | Loading commit data... | |
| entry_points_gles_3_0.h | Loading commit data... | |
| entry_points_gles_3_1.cpp | Loading commit data... | |
| entry_points_gles_3_1.h | Loading commit data... | |
| global_state.cpp | Loading commit data... | |
| global_state.h | Loading commit data... | |
| libGLESv2.cpp | Loading commit data... | |
| libGLESv2.def | Loading commit data... | |
| libGLESv2.rc | Loading commit data... | |
| resource.h | Loading commit data... |