Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
SkOTTable_gasp.h
Go to the documentation of this file.
1/*
2 * Copyright 2014 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_gasp_DEFINED
9#define SkOTTable_gasp_DEFINED
10
11#include "src/base/SkEndian.h"
13
14#pragma pack(push, 1)
15
17 static const SK_OT_CHAR TAG0 = 'g';
18 static const SK_OT_CHAR TAG1 = 'a';
19 static const SK_OT_CHAR TAG2 = 's';
20 static const SK_OT_CHAR TAG3 = 'p';
22
26
28
29 struct GaspRange {
31 union behavior {
32 struct Field {
33 //8-15
35 Reserved08,
36 Reserved09,
37 Reserved10,
38 Reserved11,
39 Reserved12,
40 Reserved13,
41 Reserved14,
42 Reserved15)
43 //0-7
45 Gridfit,
47 SymmetricGridfit, // Version 1
48 SymmetricSmoothing, // Version 1
52 Reserved07)
62 }; //gaspRange[numRanges]
63};
64
65#pragma pack(pop)
66
67
68#include <stddef.h>
69static_assert(offsetof(SkOTTableGridAndScanProcedure, numRanges) == 2, "SkOTTableGridAndScanProcedure_numRanges_not_at_2");
70static_assert(sizeof(SkOTTableGridAndScanProcedure) == 4, "sizeof_SkOTTableGridAndScanProcedure_not_4");
71
72#endif
#define SkTEndian_SwapBE16(n)
Definition SkEndian.h:142
uint16_t SK_OT_USHORT
uint32_t SK_OT_ULONG
int8_t SK_OT_CHAR
#define SK_OT_BYTE_BITFIELD
SK_OT_BYTE_BITFIELD(Reserved08, Reserved09, Reserved10, Reserved11, Reserved12, Reserved13, Reserved14, Reserved15) SK_OT_BYTE_BITFIELD(Gridfit
union SkOTTableGridAndScanProcedure::GaspRange::behavior flags
static const SK_OT_CHAR TAG0
static const SK_OT_USHORT version1
static const SK_OT_CHAR TAG2
static const SK_OT_CHAR TAG3
static const SK_OT_USHORT version0
static const SK_OT_CHAR TAG1
static const SK_OT_ULONG TAG
struct SkOTTableGridAndScanProcedure::GaspRange::behavior::Raw raw
struct SkOTTableGridAndScanProcedure::GaspRange::behavior::Field field