michael@0: /* michael@0: * Copyright 2012 Google Inc. michael@0: * michael@0: * Use of this source code is governed by a BSD-style license that can be michael@0: * found in the LICENSE file. michael@0: */ michael@0: michael@0: #ifndef SkOTTable_maxp_TT_DEFINED michael@0: #define SkOTTable_maxp_TT_DEFINED michael@0: michael@0: #include "SkEndian.h" michael@0: #include "SkOTTableTypes.h" michael@0: #include "SkTypedEnum.h" michael@0: michael@0: #pragma pack(push, 1) michael@0: michael@0: struct SkOTTableMaximumProfile_TT { michael@0: SK_OT_Fixed version; michael@0: static const SK_OT_Fixed VERSION = SkTEndian_SwapBE32(0x00010000); michael@0: michael@0: SK_OT_USHORT numGlyphs; michael@0: SK_OT_USHORT maxPoints; michael@0: SK_OT_USHORT maxContours; michael@0: SK_OT_USHORT maxCompositePoints; michael@0: SK_OT_USHORT maxCompositeContours; michael@0: struct MaxZones { michael@0: SK_TYPED_ENUM(Value, SK_OT_SHORT, michael@0: ((DoesNotUseTwilightZone, SkTEndian_SwapBE16(1))) michael@0: ((UsesTwilightZone, SkTEndian_SwapBE16(2))) michael@0: SK_SEQ_END, michael@0: (value)SK_SEQ_END) michael@0: } maxZones; michael@0: SK_OT_USHORT maxTwilightPoints; michael@0: SK_OT_USHORT maxStorage; michael@0: SK_OT_USHORT maxFunctionDefs; michael@0: SK_OT_USHORT maxInstructionDefs; michael@0: SK_OT_USHORT maxStackElements; michael@0: SK_OT_USHORT maxSizeOfInstructions; michael@0: SK_OT_USHORT maxComponentDepth; michael@0: }; michael@0: michael@0: #pragma pack(pop) michael@0: michael@0: michael@0: #include michael@0: SK_COMPILE_ASSERT(offsetof(SkOTTableMaximumProfile_TT, maxComponentDepth) == 28, SkOTTableMaximumProfile_TT_maxComponentDepth_not_at_26); michael@0: SK_COMPILE_ASSERT(sizeof(SkOTTableMaximumProfile_TT) == 30, sizeof_SkOTTableMaximumProfile_TT_not_28); michael@0: michael@0: #endif