OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #ifndef ShapeResultBuffer_h | 5 #ifndef ShapeResultBuffer_h |
6 #define ShapeResultBuffer_h | 6 #define ShapeResultBuffer_h |
7 | 7 |
8 #include "platform/fonts/shaping/ShapeResult.h" | 8 #include "platform/fonts/shaping/ShapeResult.h" |
9 #include "wtf/Allocator.h" | 9 #include "wtf/Allocator.h" |
10 #include "wtf/RefPtr.h" | 10 #include "wtf/RefPtr.h" |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 const GlyphData*, | 65 const GlyphData*, |
66 float initialAdvance, | 66 float initialAdvance, |
67 unsigned from, | 67 unsigned from, |
68 unsigned to, | 68 unsigned to, |
69 unsigned runOffset); | 69 unsigned runOffset); |
70 | 70 |
71 static void addRunInfoRanges(const ShapeResult::RunInfo&, | 71 static void addRunInfoRanges(const ShapeResult::RunInfo&, |
72 float offset, | 72 float offset, |
73 Vector<CharacterRange>&); | 73 Vector<CharacterRange>&); |
74 | 74 |
75 // Empirically, cases where we get more than 50 ShapeResults are extremely rar
e. | 75 // Empirically, cases where we get more than 50 ShapeResults are extremely |
| 76 // rare. |
76 Vector<RefPtr<const ShapeResult>, 64> m_results; | 77 Vector<RefPtr<const ShapeResult>, 64> m_results; |
77 bool m_hasVerticalOffsets; | 78 bool m_hasVerticalOffsets; |
78 }; | 79 }; |
79 | 80 |
80 } // namespace blink | 81 } // namespace blink |
81 | 82 |
82 #endif // ShapeResultBuffer_h | 83 #endif // ShapeResultBuffer_h |
OLD | NEW |