1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gfx/skia/trunk/src/sfnt/SkOTTable_maxp_TT.h Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,49 @@ 1.4 +/* 1.5 + * Copyright 2012 Google Inc. 1.6 + * 1.7 + * Use of this source code is governed by a BSD-style license that can be 1.8 + * found in the LICENSE file. 1.9 + */ 1.10 + 1.11 +#ifndef SkOTTable_maxp_TT_DEFINED 1.12 +#define SkOTTable_maxp_TT_DEFINED 1.13 + 1.14 +#include "SkEndian.h" 1.15 +#include "SkOTTableTypes.h" 1.16 +#include "SkTypedEnum.h" 1.17 + 1.18 +#pragma pack(push, 1) 1.19 + 1.20 +struct SkOTTableMaximumProfile_TT { 1.21 + SK_OT_Fixed version; 1.22 + static const SK_OT_Fixed VERSION = SkTEndian_SwapBE32(0x00010000); 1.23 + 1.24 + SK_OT_USHORT numGlyphs; 1.25 + SK_OT_USHORT maxPoints; 1.26 + SK_OT_USHORT maxContours; 1.27 + SK_OT_USHORT maxCompositePoints; 1.28 + SK_OT_USHORT maxCompositeContours; 1.29 + struct MaxZones { 1.30 + SK_TYPED_ENUM(Value, SK_OT_SHORT, 1.31 + ((DoesNotUseTwilightZone, SkTEndian_SwapBE16(1))) 1.32 + ((UsesTwilightZone, SkTEndian_SwapBE16(2))) 1.33 + SK_SEQ_END, 1.34 + (value)SK_SEQ_END) 1.35 + } maxZones; 1.36 + SK_OT_USHORT maxTwilightPoints; 1.37 + SK_OT_USHORT maxStorage; 1.38 + SK_OT_USHORT maxFunctionDefs; 1.39 + SK_OT_USHORT maxInstructionDefs; 1.40 + SK_OT_USHORT maxStackElements; 1.41 + SK_OT_USHORT maxSizeOfInstructions; 1.42 + SK_OT_USHORT maxComponentDepth; 1.43 +}; 1.44 + 1.45 +#pragma pack(pop) 1.46 + 1.47 + 1.48 +#include <stddef.h> 1.49 +SK_COMPILE_ASSERT(offsetof(SkOTTableMaximumProfile_TT, maxComponentDepth) == 28, SkOTTableMaximumProfile_TT_maxComponentDepth_not_at_26); 1.50 +SK_COMPILE_ASSERT(sizeof(SkOTTableMaximumProfile_TT) == 30, sizeof_SkOTTableMaximumProfile_TT_not_28); 1.51 + 1.52 +#endif