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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/shaping/HarfBuzzShaper.h

Issue 2230233002: Skip redundant fonts returned by FontFallbackIterator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Logging removed Created 4 years, 4 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012 Google Inc. All rights reserved. 2 * Copyright (C) 2012 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after
193 PassRefPtr<UnicodeRangeSet> currentFontRangeSet, 193 PassRefPtr<UnicodeRangeSet> currentFontRangeSet,
194 UScriptCode currentRunScript, 194 UScriptCode currentRunScript,
195 hb_language_t); 195 hb_language_t);
196 bool extractShapeResults(hb_buffer_t* harfBuzzBuffer, 196 bool extractShapeResults(hb_buffer_t* harfBuzzBuffer,
197 ShapeResult*, 197 ShapeResult*,
198 bool& fontCycleQueued, 198 bool& fontCycleQueued,
199 const HolesQueueItem& currentQueueItem, 199 const HolesQueueItem& currentQueueItem,
200 const SimpleFontData* currentFont, 200 const SimpleFontData* currentFont,
201 UScriptCode currentRunScript, 201 UScriptCode currentRunScript,
202 bool isLastResort); 202 bool isLastResort);
203 bool collectFallbackHintChars(Vector<UChar32>& hint, bool needsList); 203 bool collectFallbackHintChars(Vector<UChar32>& hint);
204 204
205 void insertRunIntoShapeResult(ShapeResult*, std::unique_ptr<ShapeResult::Run Info> runToInsert, unsigned startGlyph, unsigned numGlyphs, hb_buffer_t*); 205 void insertRunIntoShapeResult(ShapeResult*, std::unique_ptr<ShapeResult::Run Info> runToInsert, unsigned startGlyph, unsigned numGlyphs, hb_buffer_t*);
206 206
207 std::unique_ptr<UChar[]> m_normalizedBuffer; 207 std::unique_ptr<UChar[]> m_normalizedBuffer;
208 unsigned m_normalizedBufferLength; 208 unsigned m_normalizedBufferLength;
209 209
210 FeaturesVector m_features; 210 FeaturesVector m_features;
211 Deque<HolesQueueItem> m_holesQueue; 211 Deque<HolesQueueItem> m_holesQueue;
212 }; 212 };
213 213
214 214
215 } // namespace blink 215 } // namespace blink
216 216
217 #endif // HarfBuzzShaper_h 217 #endif // HarfBuzzShaper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698