#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_test_info.h"
#include "third_party/blink/renderer/platform/fonts/font.h"
#include "third_party/blink/renderer/platform/fonts/shaping/shape_result_inline_headers.h"
namespace blink {
unsigned ShapeResultTestInfo::NumberOfRunsForTesting() const { … }
ShapeResult::RunInfo& ShapeResultTestInfo::RunInfoForTesting(
unsigned run_index) const { … }
bool ShapeResultTestInfo::RunInfoForTesting(unsigned run_index,
unsigned& start_index,
unsigned& num_characters,
unsigned& num_glyphs,
hb_script_t& script) const { … }
bool ShapeResultTestInfo::RunInfoForTesting(unsigned run_index,
unsigned& start_index,
unsigned& num_glyphs,
hb_script_t& script) const { … }
uint16_t ShapeResultTestInfo::GlyphForTesting(unsigned run_index,
unsigned glyph_index) const { … }
float ShapeResultTestInfo::AdvanceForTesting(unsigned run_index,
unsigned glyph_index) const { … }
SimpleFontData* ShapeResultTestInfo::FontDataForTesting(
unsigned run_index) const { … }
Vector<unsigned> ShapeResultTestInfo::CharacterIndexesForTesting() const { … }
void AddGlyphInfo(void* context,
unsigned character_index,
Glyph glyph,
gfx::Vector2dF glyph_offset,
float advance,
bool is_horizontal,
CanvasRotationInVertical rotation,
const SimpleFontData* font_data) { … }
void ComputeGlyphResults(const ShapeResult& result,
Vector<ShapeResultTestGlyphInfo>* glyphs) { … }
bool CompareResultGlyphs(const Vector<ShapeResultTestGlyphInfo>& test,
const Vector<ShapeResultTestGlyphInfo>& reference,
unsigned reference_start,
unsigned num_glyphs) { … }
}