| 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 #ifndef ShapeResultTestInfo_h | 5 #ifndef ShapeResultTestInfo_h |
| 6 #define ShapeResultTestInfo_h | 6 #define ShapeResultTestInfo_h |
| 7 | 7 |
| 8 #include "platform/fonts/shaping/HarfBuzzShaper.h" | 8 #include "platform/fonts/shaping/HarfBuzzShaper.h" |
| 9 | 9 |
| 10 #include <hb.h> | 10 #include <hb.h> |
| 11 | 11 |
| 12 namespace blink { | 12 namespace blink { |
| 13 | 13 |
| 14 class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult { | 14 class PLATFORM_EXPORT ShapeResultTestInfo : public ShapeResult { |
| 15 public: | 15 public: |
| 16 unsigned numberOfRunsForTesting() const; | 16 unsigned numberOfRunsForTesting() const; |
| 17 bool runInfoForTesting(unsigned runIndex, | 17 bool runInfoForTesting(unsigned runIndex, |
| 18 unsigned& startIndex, | 18 unsigned& startIndex, |
| 19 unsigned& numGlyphs, | 19 unsigned& numGlyphs, |
| 20 hb_script_t&) const; | 20 hb_script_t&) const; |
| 21 uint16_t glyphForTesting(unsigned runIndex, size_t glyphIndex) const; | 21 uint16_t glyphForTesting(unsigned runIndex, size_t glyphIndex) const; |
| 22 float advanceForTesting(unsigned runIndex, size_t glyphIndex) const; | 22 float advanceForTesting(unsigned runIndex, size_t glyphIndex) const; |
| 23 SimpleFontData* fontDataForTesting(unsigned runIndex) const; |
| 23 }; | 24 }; |
| 24 | 25 |
| 25 } // namespace blink | 26 } // namespace blink |
| 26 | 27 |
| 27 #endif // ShapeResultTestInfo_h | 28 #endif // ShapeResultTestInfo_h |
| OLD | NEW |