Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
std::hash< skia::textlayout::FontArguments > Struct Reference

#include <FontArguments.h>

Public Member Functions

size_t operator() (const skia::textlayout::FontArguments &args) const
 

Detailed Description

Definition at line 41 of file FontArguments.h.

Member Function Documentation

◆ operator()()

size_t std::hash< skia::textlayout::FontArguments >::operator() ( const skia::textlayout::FontArguments args) const

Definition at line 17 of file FontArguments.cpp.

17 {
18 size_t hash = 0;
19 hash ^= std::hash<int>()(args.fCollectionIndex);
20 for (const auto& coord : args.fCoordinates) {
21 hash ^= std::hash<SkFourByteTag>()(coord.axis);
22 hash ^= std::hash<float>()(coord.value);
23 }
24 hash ^= std::hash<int>()(args.fPaletteIndex);
25 for (const auto& override : args.fPaletteOverrides) {
26 hash ^= std::hash<int>()(override.index);
27 hash ^= std::hash<SkColor>()(override.color);
28 }
29 return hash;
30}
static uint32_t hash(const SkShaderBase::GradientInfo &v)
G_BEGIN_DECLS G_MODULE_EXPORT FlValue * args

The documentation for this struct was generated from the following files: