• Home
  • Raw
  • Download

Lines Matching +full:android +full:- +full:stub

2  * Mesa 3-D graphics library
4 * Copyright (C) 1999-2008 Brian Paul All Rights Reserved.
26 * Chia-I Wu <olv@lunarg.com>
34 #include "stub.h"
78 * Fill-in the dispatch stub for the named function.
81 * a dispatch stub may be created created for the function. A pointer to this
90 * - 'i' for \c GLint, \c GLuint, and \c GLenum
91 * - 'p' for any pointer type
92 * - 'f' for \c GLfloat and \c GLclampf
93 * - 'd' for \c GLdouble and \c GLclampd
98 * \c dispatch_table[\c offset]. Return -1 if error/problem.
125 const struct mapi_stub *stub; in _glapi_add_dispatch() local
129 return -1; in _glapi_add_dispatch()
132 stub = stub_find_public(funcName); in _glapi_add_dispatch()
133 if (!stub) in _glapi_add_dispatch()
134 stub = stub_find_dynamic(funcName, 0); in _glapi_add_dispatch()
136 slot = (stub) ? stub_get_slot(stub) : -1; in _glapi_add_dispatch()
139 return -1; in _glapi_add_dispatch()
140 /* use the first existing stub as the alias */ in _glapi_add_dispatch()
142 alias = stub; in _glapi_add_dispatch()
144 function_stubs[i] = stub; in _glapi_add_dispatch()
151 struct mapi_stub *stub; in _glapi_add_dispatch() local
156 stub = stub_find_dynamic(funcName, 1); in _glapi_add_dispatch()
157 if (!stub) in _glapi_add_dispatch()
158 return -1; in _glapi_add_dispatch()
160 stub_fix_dynamic(stub, alias); in _glapi_add_dispatch()
162 alias = stub; in _glapi_add_dispatch()
165 return (alias) ? stub_get_slot(alias) : -1; in _glapi_add_dispatch()
168 #if defined(ANDROID) && ANDROID_API_LEVEL <= 30
180 const struct mapi_stub *stub; in _glapi_get_stub() local
186 stub = stub_find_public(name); in _glapi_get_stub()
187 #if defined(ANDROID) && ANDROID_API_LEVEL <= 30 in _glapi_get_stub()
188 /* Android framework till API Level 30 uses function pointers from in _glapi_get_stub()
190 * Make sure we don't return stub function pointers if we don't in _glapi_get_stub()
192 if (!stub && !is_debug_marker_func(name)) in _glapi_get_stub()
194 if (!stub) in _glapi_get_stub()
196 stub = stub_find_dynamic(name, generate); in _glapi_get_stub()
198 return stub; in _glapi_get_stub()
207 const struct mapi_stub *stub = _glapi_get_stub(funcName, 0); in _glapi_get_proc_offset() local
208 return (stub) ? stub_get_slot(stub) : -1; in _glapi_get_proc_offset()
219 const struct mapi_stub *stub = _glapi_get_stub(funcName, 1); in _glapi_get_proc_address() local
220 return (stub) ? (_glapi_proc) stub_get_addr(stub) : NULL; in _glapi_get_proc_address()
230 const struct mapi_stub *stub = stub_find_by_slot(offset); in _glapi_get_proc_name() local
231 return stub ? stub_get_name(stub) : NULL; in _glapi_get_proc_name()
234 /** Return pointer to new dispatch table filled with no-op functions */