Flutter Engine
The Flutter Engine
Classes | Namespaces | Enumerations
GrDistanceFieldGeoProc.h File Reference
#include "include/core/SkMatrix.h"
#include "include/core/SkScalar.h"
#include "include/core/SkSize.h"
#include "src/base/SkArenaAlloc.h"
#include "src/gpu/ganesh/GrGeometryProcessor.h"
#include "src/gpu/ganesh/GrProcessorUnitTest.h"
#include "src/gpu/ganesh/GrSamplerState.h"
#include <cstdint>
#include <memory>

Go to the source code of this file.

Classes

class  GrDistanceFieldA8TextGeoProc
 
class  GrDistanceFieldPathGeoProc
 
class  GrDistanceFieldLCDTextGeoProc
 
struct  GrDistanceFieldLCDTextGeoProc::DistanceAdjust
 

Namespaces

namespace  skgpu
 

Enumerations

enum  GrDistanceFieldEffectFlags {
  kSimilarity_DistanceFieldEffectFlag = 0x001 , kScaleOnly_DistanceFieldEffectFlag = 0x002 , kPerspective_DistanceFieldEffectFlag = 0x004 , kUseLCD_DistanceFieldEffectFlag = 0x008 ,
  kBGR_DistanceFieldEffectFlag = 0x010 , kPortrait_DistanceFieldEffectFlag = 0x020 , kGammaCorrect_DistanceFieldEffectFlag = 0x040 , kAliased_DistanceFieldEffectFlag = 0x080 ,
  kWideColor_DistanceFieldEffectFlag = 0x100 , kInvalid_DistanceFieldEffectFlag = 0x200 , kUniformScale_DistanceFieldEffectMask , kNonLCD_DistanceFieldEffectMask ,
  kPath_DistanceFieldEffectMask , kLCD_DistanceFieldEffectMask
}
 

Enumeration Type Documentation

◆ GrDistanceFieldEffectFlags

Enumerator
kSimilarity_DistanceFieldEffectFlag 
kScaleOnly_DistanceFieldEffectFlag 
kPerspective_DistanceFieldEffectFlag 
kUseLCD_DistanceFieldEffectFlag 
kBGR_DistanceFieldEffectFlag 
kPortrait_DistanceFieldEffectFlag 
kGammaCorrect_DistanceFieldEffectFlag 
kAliased_DistanceFieldEffectFlag 
kWideColor_DistanceFieldEffectFlag 
kInvalid_DistanceFieldEffectFlag 
kUniformScale_DistanceFieldEffectMask 
kNonLCD_DistanceFieldEffectMask 
kPath_DistanceFieldEffectMask 
kLCD_DistanceFieldEffectMask 

Definition at line 28 of file GrDistanceFieldGeoProc.h.

28 {
29 kSimilarity_DistanceFieldEffectFlag = 0x001, // ctm is similarity matrix
30 kScaleOnly_DistanceFieldEffectFlag = 0x002, // ctm has only scale and translate
31 kPerspective_DistanceFieldEffectFlag = 0x004, // ctm has perspective (and positions are x,y,w)
32 kUseLCD_DistanceFieldEffectFlag = 0x008, // use lcd text
33 kBGR_DistanceFieldEffectFlag = 0x010, // lcd display has bgr order
34 kPortrait_DistanceFieldEffectFlag = 0x020, // lcd display is in portrait mode
35 kGammaCorrect_DistanceFieldEffectFlag = 0x040, // assume gamma-correct output (linear blending)
36 kAliased_DistanceFieldEffectFlag = 0x080, // monochrome output
37 kWideColor_DistanceFieldEffectFlag = 0x100, // use wide color (only for path)
38
39 kInvalid_DistanceFieldEffectFlag = 0x200, // invalid state (for initialization)
40
43 // The subset of the flags relevant to GrDistanceFieldA8TextGeoProc
49 // The subset of the flags relevant to GrDistanceFieldPathGeoProc
56 // The subset of the flags relevant to GrDistanceFieldLCDTextGeoProc
64};
@ kGammaCorrect_DistanceFieldEffectFlag
@ kWideColor_DistanceFieldEffectFlag
@ kUseLCD_DistanceFieldEffectFlag
@ kPerspective_DistanceFieldEffectFlag
@ kSimilarity_DistanceFieldEffectFlag
@ kBGR_DistanceFieldEffectFlag
@ kScaleOnly_DistanceFieldEffectFlag
@ kInvalid_DistanceFieldEffectFlag
@ kAliased_DistanceFieldEffectFlag
@ kUniformScale_DistanceFieldEffectMask
@ kPath_DistanceFieldEffectMask
@ kNonLCD_DistanceFieldEffectMask
@ kPortrait_DistanceFieldEffectFlag
@ kLCD_DistanceFieldEffectMask