| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2014 Google Inc. | 2 * Copyright 2014 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef SkOTTable_gasp_DEFINED | 8 #ifndef SkOTTable_gasp_DEFINED |
| 9 #define SkOTTable_gasp_DEFINED | 9 #define SkOTTable_gasp_DEFINED |
| 10 | 10 |
| 11 #include "SkEndian.h" | 11 #include "SkEndian.h" |
| 12 #include "SkOTTableTypes.h" | 12 #include "SkOTTableTypes.h" |
| 13 #include "SkTypedEnum.h" | |
| 14 | 13 |
| 15 #pragma pack(push, 1) | 14 #pragma pack(push, 1) |
| 16 | 15 |
| 17 struct SkOTTableGridAndScanProcedure { | 16 struct SkOTTableGridAndScanProcedure { |
| 18 static const SK_OT_CHAR TAG0 = 'g'; | 17 static const SK_OT_CHAR TAG0 = 'g'; |
| 19 static const SK_OT_CHAR TAG1 = 'a'; | 18 static const SK_OT_CHAR TAG1 = 'a'; |
| 20 static const SK_OT_CHAR TAG2 = 's'; | 19 static const SK_OT_CHAR TAG2 = 's'; |
| 21 static const SK_OT_CHAR TAG3 = 'p'; | 20 static const SK_OT_CHAR TAG3 = 'p'; |
| 22 static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableGridAndScanProcedure>::
value; | 21 static const SK_OT_ULONG TAG = SkOTTableTAG<SkOTTableGridAndScanProcedure>::
value; |
| 23 | 22 |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 }; | 63 }; |
| 65 | 64 |
| 66 #pragma pack(pop) | 65 #pragma pack(pop) |
| 67 | 66 |
| 68 | 67 |
| 69 #include <stddef.h> | 68 #include <stddef.h> |
| 70 static_assert(offsetof(SkOTTableGridAndScanProcedure, numRanges) == 2, "SkOTTabl
eGridAndScanProcedure_numRanges_not_at_2"); | 69 static_assert(offsetof(SkOTTableGridAndScanProcedure, numRanges) == 2, "SkOTTabl
eGridAndScanProcedure_numRanges_not_at_2"); |
| 71 static_assert(sizeof(SkOTTableGridAndScanProcedure) == 4, "sizeof_SkOTTableGridA
ndScanProcedure_not_4"); | 70 static_assert(sizeof(SkOTTableGridAndScanProcedure) == 4, "sizeof_SkOTTableGridA
ndScanProcedure_not_4"); |
| 72 | 71 |
| 73 #endif | 72 #endif |
| OLD | NEW |