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

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

Issue 2751163002: Report UseCounter metric when observing NotDef glyphs (Closed)
Patch Set: Relax num_glyphs assertion, not feasible on Mac Created 3 years, 7 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 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 struct RangeData; 73 struct RangeData;
74 74
75 // Shapes a single seqment, as identified by the RunSegmenterRange parameter, 75 // Shapes a single seqment, as identified by the RunSegmenterRange parameter,
76 // one or more times taking font fallback into account. The start and end 76 // one or more times taking font fallback into account. The start and end
77 // parameters are for the entire text run, not the segment, and are used to 77 // parameters are for the entire text run, not the segment, and are used to
78 // determine pre- and post-context for shaping. 78 // determine pre- and post-context for shaping.
79 void ShapeSegment(RangeData*, 79 void ShapeSegment(RangeData*,
80 RunSegmenter::RunSegmenterRange, 80 RunSegmenter::RunSegmenterRange,
81 ShapeResult*) const; 81 ShapeResult*) const;
82 82
83 bool ExtractShapeResults(RangeData*, 83 void ExtractShapeResults(RangeData*,
84 bool& font_cycle_queued, 84 bool& font_cycle_queued,
85 const HolesQueueItem&, 85 const HolesQueueItem&,
86 const SimpleFontData*, 86 const SimpleFontData*,
87 UScriptCode, 87 UScriptCode,
88 bool is_last_resort, 88 bool is_last_resort,
89 ShapeResult*) const; 89 ShapeResult*) const;
90 90
91 bool CollectFallbackHintChars(const Deque<HolesQueueItem>&, 91 bool CollectFallbackHintChars(const Deque<HolesQueueItem>&,
92 Vector<UChar32>& hint) const; 92 Vector<UChar32>& hint) const;
93 93
94 const UChar* text_; 94 const UChar* text_;
95 unsigned text_length_; 95 unsigned text_length_;
96 }; 96 };
97 97
98 } // namespace blink 98 } // namespace blink
99 99
100 #endif // HarfBuzzShaper_h 100 #endif // HarfBuzzShaper_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698