blob: 9e1f8a419b1a96b04ff6e7596921b9db1b03e4bb [file] [log] [blame]
bungeman@google.comf8d1aee2012-02-02 19:15:21 +00001/*
2 * Copyright 2012 Google Inc.
3 *
4 * Use of this source code is governed by a BSD-style license that can be
5 * found in the LICENSE file.
6 */
7
8#ifndef SkOTTable_OS_2_DEFINED
9#define SkOTTable_OS_2_DEFINED
10
11#include "SkOTTable_OS_2_VA.h"
12#include "SkOTTable_OS_2_V0.h"
13#include "SkOTTable_OS_2_V1.h"
14#include "SkOTTable_OS_2_V2.h"
15#include "SkOTTable_OS_2_V3.h"
16#include "SkOTTable_OS_2_V4.h"
17
18#pragma pack(push, 1)
19
20union SkOTTableOS2 {
21 //original V0 TT
22 struct VA : SkOTTableOS2_VA { } vA;
23 struct V0 : SkOTTableOS2_V0 { } v0;
24 struct V1 : SkOTTableOS2_V1 { } v1;
25 struct V2 : SkOTTableOS2_V2 { } v2;
26 //makes fsType 0-3 exclusive
27 struct V3 : SkOTTableOS2_V3 { } v3;
28 //defines fsSelection bits 7-9
29 struct V4 : SkOTTableOS2_V4 { } v4;
30};
31
32#pragma pack(pop)
33
34
35SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::VA) == 68, sizeof_SkOTTableOS2__VA_not_68);
36SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::V0) == 78, sizeof_SkOTTableOS2__V0_not_78);
37SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::V1) == 86, sizeof_SkOTTableOS2__V1_not_86);
38SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::V2) == 96, sizeof_SkOTTableOS2__V2_not_96);
39SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::V3) == 96, sizeof_SkOTTableOS2__V3_not_96);
40SK_COMPILE_ASSERT(sizeof(SkOTTableOS2::V4) == 96, sizeof_SkOTTableOS2__V4_not_96);
41
42#endif