| Index: src/sfnt/SkOTTableTypes.h
|
| ===================================================================
|
| --- src/sfnt/SkOTTableTypes.h (revision 13776)
|
| +++ src/sfnt/SkOTTableTypes.h (working copy)
|
| @@ -8,6 +8,7 @@
|
| #ifndef SkOTTableTypes_DEFINED
|
| #define SkOTTableTypes_DEFINED
|
|
|
| +#include "SkTemplates.h"
|
| #include "SkTypes.h"
|
| #include "SkEndian.h"
|
|
|
| @@ -45,4 +46,16 @@
|
| );
|
| };
|
|
|
| +/** SkOTSetUSHORTBit<N>::value is an SK_OT_USHORT with the Nth BE bit set. */
|
| +template <unsigned N> struct SkOTSetUSHORTBit {
|
| + static const uint16_t bit = SkTSetBit<N, uint16_t>::value;
|
| + static const SK_OT_USHORT value = SkTEndian_SwapBE16(bit);
|
| +};
|
| +
|
| +/** SkOTSetUSHORTBit<N>::value is an SK_OT_ULONG with the Nth BE bit set. */
|
| +template <unsigned N> struct SkOTSetULONGBit {
|
| + static const uint32_t bit = SkTSetBit<N, uint32_t>::value;
|
| + static const SK_OT_ULONG value = SkTEndian_SwapBE32(bit);
|
| +};
|
| +
|
| #endif
|
|
|