1 // 2 // Copyright(c) 2014 The ANGLE Project Authors. All rights reserved. 3 // Use of this source code is governed by a BSD-style license that can be 4 // found in the LICENSE file. 5 // 6 7 // global_state.h : Defines functions for querying the thread-local GL and EGL state. 8 9 #ifndef LIBGLESV2_GLOBALSTATE_H_ 10 #define LIBGLESV2_GLOBALSTATE_H_ 11 12 namespace gl 13 { 14 class Context; 15 16 Context *GetGlobalContext(); 17 Context *GetValidGlobalContext(); 18 19 } // namespace gl 20 21 namespace egl 22 { 23 class Thread; 24 25 Thread *GetCurrentThread(); 26 27 } // namespace egl 28 29 #endif // LIBGLESV2_GLOBALSTATE_H_ 30