In single-threaded cases we don't need to use a TLS lookup for the current Context. Assume a global context has 3 states: unset, set, and multi-threaded: * global context unset -> set the global context * global context set, matches TLS context -> set the global context * global context set, doesn't match TLS -> set multi-threaded * global context multi-threaded -> leave it This also inlines the global context/TLS check into global_state.h. Increases performance of the binding perf overhead test by up to 25% and the draw call perf test by up to 3%. Bug: angleproject:2824 Change-Id: Ib95953ca918f2408fe72ca83061f4e2d1bd1adad Reviewed-on: https://chromium-review.googlesource.com/1231993 Commit-Queue: Jamie Madill <jmadill@chromium.org> Reviewed-by:Yuly Novikov <ynovikov@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_1_0_autogen.cpp | Loading commit data... | |
| entry_points_gles_1_0_autogen.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_3_0_autogen.cpp | Loading commit data... | |
| entry_points_gles_3_0_autogen.h | Loading commit data... | |
| entry_points_gles_3_1_autogen.cpp | Loading commit data... | |
| entry_points_gles_3_1_autogen.h | Loading commit data... | |
| entry_points_gles_ext_autogen.cpp | Loading commit data... | |
| entry_points_gles_ext_autogen.h | Loading commit data... | |
| gen_proc_table.py | Loading commit data... | |
| global_state.cpp | Loading commit data... | |
| global_state.h | Loading commit data... | |
| libGLESv2.rc | Loading commit data... | |
| libGLESv2_autogen.cpp | Loading commit data... | |
| libGLESv2_autogen.def | Loading commit data... | |
| proc_table.h | Loading commit data... | |
| proc_table_autogen.cpp | Loading commit data... | |
| proc_table_data.json | Loading commit data... | |
| resource.h | Loading commit data... |