Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(87)

Side by Side Diff: third_party/woff2/src/font.h

Issue 1873123002: Update woff2 to 4e698b8 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update BUILD.gn (win8 build fix?) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « third_party/woff2/src/file.h ('k') | third_party/woff2/src/font.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 Google Inc. All Rights Reserved. 1 // Copyright 2013 Google Inc. All Rights Reserved.
2 // 2 //
3 // Licensed under the Apache License, Version 2.0 (the "License"); 3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License. 4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at 5 // You may obtain a copy of the License at
6 // 6 //
7 // http://www.apache.org/licenses/LICENSE-2.0 7 // http://www.apache.org/licenses/LICENSE-2.0
8 // 8 //
9 // Unless required by applicable law or agreed to in writing, software 9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS, 10 // distributed under the License is distributed on an "AS IS" BASIS,
(...skipping 29 matching lines...) Expand all
40 const uint8_t* data; 40 const uint8_t* data;
41 41
42 // Buffer used to mutate the data before writing out. 42 // Buffer used to mutate the data before writing out.
43 std::vector<uint8_t> buffer; 43 std::vector<uint8_t> buffer;
44 44
45 // If we've seen this tag/offset before, pointer to the first time we saw it 45 // If we've seen this tag/offset before, pointer to the first time we saw it
46 // If this is the first time we've seen this table, NULL 46 // If this is the first time we've seen this table, NULL
47 // Intended use is to bypass re-processing tables 47 // Intended use is to bypass re-processing tables
48 Font::Table* reuse_of; 48 Font::Table* reuse_of;
49 49
50 uint8_t flag_byte;
51
50 // Is this table reused by a TTC 52 // Is this table reused by a TTC
51 bool IsReused() const; 53 bool IsReused() const;
52 }; 54 };
53 std::map<uint32_t, Table> tables; 55 std::map<uint32_t, Table> tables;
54 std::vector<uint32_t> OutputOrderedTags() const; 56 std::vector<uint32_t> OutputOrderedTags() const;
55 57
56 Table* FindTable(uint32_t tag); 58 Table* FindTable(uint32_t tag);
57 const Table* FindTable(uint32_t tag) const; 59 const Table* FindTable(uint32_t tag) const;
58 }; 60 };
59 61
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 // with the given index. Returns false if the glyph is not found. 103 // with the given index. Returns false if the glyph is not found.
102 bool GetGlyphData(const Font& font, int glyph_index, 104 bool GetGlyphData(const Font& font, int glyph_index,
103 const uint8_t** glyph_data, size_t* glyph_size); 105 const uint8_t** glyph_data, size_t* glyph_size);
104 106
105 // Removes the digital signature (DSIG) table 107 // Removes the digital signature (DSIG) table
106 bool RemoveDigitalSignature(Font* font); 108 bool RemoveDigitalSignature(Font* font);
107 109
108 } // namespace woff2 110 } // namespace woff2
109 111
110 #endif // WOFF2_FONT_H_ 112 #endif // WOFF2_FONT_H_
OLDNEW
« no previous file with comments | « third_party/woff2/src/file.h ('k') | third_party/woff2/src/font.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698