Skip to content

Commit 3bfe966

Browse files
herbderbySkia Commit-Bot
authored andcommitted
Move unused fields to bottom
Change-Id: I41593bf44efc0c8baa2d675e406169eb303b5015 Reviewed-on: https://skia-review.googlesource.com/c/167682 Reviewed-by: Herb Derby <[email protected]> Reviewed-by: Mike Klein <[email protected]> Commit-Queue: Herb Derby <[email protected]>
1 parent f67b162 commit 3bfe966

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/core/SkGlyphRun.h

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -224,14 +224,11 @@ class SkGlyphRunBuilder {
224224
SkSpan<const uint32_t> clusters = SkSpan<const uint32_t>{});
225225

226226
size_t fMaxTotalRunSize{0};
227-
SkAutoTMalloc<uint16_t> fUniqueGlyphIDIndices;
228227
SkAutoTMalloc<SkPoint> fPositions;
229-
SkAutoTMalloc<SkGlyphID> fUniqueGlyphIDs;
230228

231229
std::vector<SkGlyphRun> fGlyphRunListStorage;
232230
SkGlyphRunList fGlyphRunList;
233231

234-
235232
// Used as a temporary for preparing using utfN text. This implies that only one run of
236233
// glyph ids will ever be needed because blobs are already glyph based.
237234
std::vector<SkGlyphID> fScratchGlyphIDs;
@@ -241,6 +238,8 @@ class SkGlyphRunBuilder {
241238

242239
// Used for collecting the set of unique glyphs.
243240
SkGlyphIDSet fGlyphIDSet;
241+
SkAutoTMalloc<SkGlyphID> fUniqueGlyphIDs;
242+
SkAutoTMalloc<uint16_t> fUniqueGlyphIDIndices;
244243
};
245244

246245
#endif // SkGlyphRun_DEFINED

0 commit comments

Comments
 (0)