| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 #include "platform/fonts/shaping/ShapeResultTestInfo.h" | 5 #include "platform/fonts/shaping/ShapeResultTestInfo.h" |
| 6 | 6 |
| 7 #include "platform/fonts/Font.h" | 7 #include "platform/fonts/Font.h" |
| 8 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" | 8 #include "platform/fonts/shaping/ShapeResultInlineHeaders.h" |
| 9 | 9 |
| 10 namespace blink { | 10 namespace blink { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 uint16_t ShapeResultTestInfo::glyphForTesting(unsigned runIndex, | 29 uint16_t ShapeResultTestInfo::glyphForTesting(unsigned runIndex, |
| 30 size_t glyphIndex) const { | 30 size_t glyphIndex) const { |
| 31 return m_runs[runIndex]->m_glyphData[glyphIndex].glyph; | 31 return m_runs[runIndex]->m_glyphData[glyphIndex].glyph; |
| 32 } | 32 } |
| 33 | 33 |
| 34 float ShapeResultTestInfo::advanceForTesting(unsigned runIndex, | 34 float ShapeResultTestInfo::advanceForTesting(unsigned runIndex, |
| 35 size_t glyphIndex) const { | 35 size_t glyphIndex) const { |
| 36 return m_runs[runIndex]->m_glyphData[glyphIndex].advance; | 36 return m_runs[runIndex]->m_glyphData[glyphIndex].advance; |
| 37 } | 37 } |
| 38 | 38 |
| 39 SimpleFontData* ShapeResultTestInfo::fontDataForTesting( |
| 40 unsigned runIndex) const { |
| 41 return m_runs[runIndex]->m_fontData.get(); |
| 42 } |
| 43 |
| 39 } // namespace blink | 44 } // namespace blink |
| OLD | NEW |