Flutter Engine
The Flutter Engine
Public Member Functions | Static Public Member Functions | Friends | List of all members
sktext::gpu::DistanceFieldAdjustTable Class Reference

#include <DistanceFieldAdjustTable.h>

Public Member Functions

 ~DistanceFieldAdjustTable ()
 
SkScalar getAdjustment (int lum, bool useGammaCorrectTable) const
 

Static Public Member Functions

static const DistanceFieldAdjustTableGet ()
 

Friends

class SkNoDestructor< DistanceFieldAdjustTable >
 

Detailed Description

Definition at line 18 of file DistanceFieldAdjustTable.h.

Constructor & Destructor Documentation

◆ ~DistanceFieldAdjustTable()

sktext::gpu::DistanceFieldAdjustTable::~DistanceFieldAdjustTable ( )
inline

Definition at line 22 of file DistanceFieldAdjustTable.h.

22 {
23 delete[] fTable;
24 delete[] fGammaCorrectTable;
25 }

Member Function Documentation

◆ Get()

const DistanceFieldAdjustTable * sktext::gpu::DistanceFieldAdjustTable::Get ( )
static

Definition at line 107 of file DistanceFieldAdjustTable.cpp.

107 {
109 return dfat.get();
110}
const T * get() const

◆ getAdjustment()

SkScalar sktext::gpu::DistanceFieldAdjustTable::getAdjustment ( int  lum,
bool  useGammaCorrectTable 
) const
inline

Definition at line 27 of file DistanceFieldAdjustTable.h.

27 {
28 lum >>= kDistanceAdjustLumShift;
29 return useGammaCorrectTable ? fGammaCorrectTable[lum] : fTable[lum];
30 }
static float lum(float r, float g, float b)
Definition: hsl.cpp:52

Friends And Related Function Documentation

◆ SkNoDestructor< DistanceFieldAdjustTable >

friend class SkNoDestructor< DistanceFieldAdjustTable >
friend

Definition at line 38 of file DistanceFieldAdjustTable.h.


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