xpcom/xpcom-private.h.in
author Benoit Jacob <bjacob@mozilla.com>
Sun, 04 Dec 2011 14:15:43 -0500
changeset 81418 432d88a73914212f73ebf3fef49925e00aea1b78
parent 1 9b2a99adc05e53cd4010de512f50118594756650
child 94475 f4157e8c410708d76703f19e4dfb61859bfe32d8
permissions -rw-r--r--
Bug 707033 - Kill the hashtables of WebGLUniformLocation's held by WebGLProgram's - r=jgilbert Currently, WebGLProgram holds a hashtable of refptrs to all WebGLUniformLocation's created from it. It's used for one thing: to ensure that multiple getUniformLocation() calls on same uniform return the same WebGLUniformLocation object. However, in a discussion on the public_webgl mailing list this week, we agreed that this was not mandated by the spec and that on the contrary, to ensure consistent behavior across browsers, we're going to require that NOT to happen. So this becomes a conformance issue. Removing this hashtable also simplifies code and ownership patterns.

/* The following defines are only used by the xpcom implementation */

#ifndef _XPCOM_PRIVATE_H_
#define _XPCOM_PRIVATE_H_

/* Define if getpagesize() is available */
#undef HAVE_GETPAGESIZE

/* Define if iconv() is available */
#undef HAVE_ICONV

/* Define if iconv() supports const input */
#undef HAVE_ICONV_WITH_CONST_INPUT

/* Define if mbrtowc() is available */
#undef HAVE_MBRTOWC

/* Define if <sys/mount.h> is present */
#undef HAVE_SYS_MOUNT_H

/* Define if <sys/vfs.h> is present */
#undef HAVE_SYS_VFS_H

/* Define if wcrtomb() is available */
#undef HAVE_WCRTOMB

#endif /* _XPCOM_PRIVATE_H_ */