OLD | NEW |
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 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
72 if (runIndex < m_harfBuzzRuns.size()) { | 72 if (runIndex < m_harfBuzzRuns.size()) { |
73 startIndex = m_harfBuzzRuns[runIndex]->startIndex(); | 73 startIndex = m_harfBuzzRuns[runIndex]->startIndex(); |
74 numGlyphs = m_harfBuzzRuns[runIndex]->numGlyphs(); | 74 numGlyphs = m_harfBuzzRuns[runIndex]->numGlyphs(); |
75 script = m_harfBuzzRuns[runIndex]->script(); | 75 script = m_harfBuzzRuns[runIndex]->script(); |
76 return true; | 76 return true; |
77 } | 77 } |
78 return false; | 78 return false; |
79 } | 79 } |
80 | 80 |
81 private: | 81 private: |
82 class HarfBuzzRun { | 82 class PLATFORM_EXPORT HarfBuzzRun { |
83 public: | 83 public: |
84 HarfBuzzRun(const HarfBuzzRun&); | 84 HarfBuzzRun(const HarfBuzzRun&); |
85 ~HarfBuzzRun(); | 85 ~HarfBuzzRun(); |
86 | 86 |
87 static PassOwnPtr<HarfBuzzRun> create(const SimpleFontData* fontData, un
signed startIndex, unsigned numCharacters, hb_direction_t direction, hb_script_t
script) | 87 static PassOwnPtr<HarfBuzzRun> create(const SimpleFontData* fontData, un
signed startIndex, unsigned numCharacters, hb_direction_t direction, hb_script_t
script) |
88 { | 88 { |
89 return adoptPtr(new HarfBuzzRun(fontData, startIndex, numCharacters,
direction, script)); | 89 return adoptPtr(new HarfBuzzRun(fontData, startIndex, numCharacters,
direction, script)); |
90 } | 90 } |
91 | 91 |
92 void applyShapeResult(hb_buffer_t*); | 92 void applyShapeResult(hb_buffer_t*); |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
161 int m_toIndex; | 161 int m_toIndex; |
162 | 162 |
163 float m_totalWidth; | 163 float m_totalWidth; |
164 | 164 |
165 friend struct CachedShapingResults; | 165 friend struct CachedShapingResults; |
166 }; | 166 }; |
167 | 167 |
168 } // namespace blink | 168 } // namespace blink |
169 | 169 |
170 #endif // HarfBuzzShaper_h | 170 #endif // HarfBuzzShaper_h |
OLD | NEW |