diff options
author | Paul Berry <[email protected]> | 2012-10-10 15:19:21 -0700 |
---|---|---|
committer | Paul Berry <[email protected]> | 2012-10-16 12:03:56 -0700 |
commit | 137f8ef2258cda926074d1c4708b4925f7da71a8 (patch) | |
tree | 859942999fde111e63f8e64a1b34175768fe45a0 /Android.common.mk | |
parent | 4f6fc905c68fc1f7deab27d0b931f58e0558630e (diff) |
mapi_abi: Override 'hidden' and 'handcode' attributes using polymorphism.
Previously, the ES1, ES2, and shared GLAPI printers passed a list of
function names to the base class constructor, which was used by the
_override_for_api() function to loop over all the API functions and
adjust their 'hidden' and 'handcode' attributes as appropriate for the
API flavour being code-generated.
This patch lifts the loop from _override_for_api() into its caller,
and makes it into a polymorphic function, so that the derived classes
can customize its behaviour directly. In a future patch, this will
allow us to override the 'hidden' and 'handcode' attributes based on
information from the XML rather than a list of functions.
Tested-by: Matt Turner <[email protected]>
Reviewed-by: Ian Romanick <[email protected]>
Diffstat (limited to 'Android.common.mk')
0 files changed, 0 insertions, 0 deletions