Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Public Types | Public Member Functions | Protected Attributes | List of all members
skgpu::graphite::KeyContext Class Reference

#include <KeyContext.h>

Inheritance diagram for skgpu::graphite::KeyContext:
skgpu::graphite::KeyContextWithColorInfo skgpu::graphite::KeyContextWithLocalMatrix skgpu::graphite::KeyContextWithScope

Public Types

enum class  Scope { kDefault , kRuntimeEffect }
 

Public Member Functions

 KeyContext (const Caps *caps, ShaderCodeDictionary *dict, RuntimeEffectDictionary *rtEffectDict, const SkColorInfo &dstColorInfo, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset)
 
 KeyContext (Recorder *, const SkM44 &local2Dev, const SkColorInfo &dstColorInfo, const SkColor4f &paintColor, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset)
 
 KeyContext (const KeyContext &)
 
Recorderrecorder () const
 
const Capscaps () const
 
const SkM44local2Dev () const
 
const SkMatrixlocalMatrix () const
 
ShaderCodeDictionarydict () const
 
RuntimeEffectDictionaryrtEffectDict () const
 
const SkColorInfodstColorInfo () const
 
sk_sp< TextureProxydstTexture () const
 
SkIPoint dstOffset () const
 
const SkPMColor4fpaintColor () const
 
Scope scope () const
 

Protected Attributes

RecorderfRecorder = nullptr
 
SkM44 fLocal2Dev
 
SkMatrixfLocalMatrix = nullptr
 
ShaderCodeDictionaryfDictionary
 
RuntimeEffectDictionaryfRTEffectDict
 
SkColorInfo fDstColorInfo
 
SkPMColor4f fPaintColor = SK_PMColor4fBLACK
 
Scope fScope = Scope::kDefault
 

Detailed Description

Definition at line 29 of file KeyContext.h.

Member Enumeration Documentation

◆ Scope

Enumerator
kDefault 
kRuntimeEffect 

Definition at line 74 of file KeyContext.h.

Constructor & Destructor Documentation

◆ KeyContext() [1/3]

skgpu::graphite::KeyContext::KeyContext ( const Caps caps,
ShaderCodeDictionary dict,
RuntimeEffectDictionary rtEffectDict,
const SkColorInfo dstColorInfo,
sk_sp< TextureProxy dstTexture,
SkIPoint  dstOffset 
)
inline

Definition at line 32 of file KeyContext.h.

41 , fCaps(caps)
42 , fDstTexture(std::move(dstTexture))
43 , fDstOffset(dstOffset) {}
RuntimeEffectDictionary * rtEffectDict() const
Definition KeyContext.h:63
SkIPoint dstOffset() const
Definition KeyContext.h:70
RuntimeEffectDictionary * fRTEffectDict
Definition KeyContext.h:86
sk_sp< TextureProxy > dstTexture() const
Definition KeyContext.h:68
const SkColorInfo & dstColorInfo() const
Definition KeyContext.h:65
ShaderCodeDictionary * fDictionary
Definition KeyContext.h:85
ShaderCodeDictionary * dict() const
Definition KeyContext.h:62
const Caps * caps() const
Definition KeyContext.h:57

◆ KeyContext() [2/3]

skgpu::graphite::KeyContext::KeyContext ( Recorder recorder,
const SkM44 local2Dev,
const SkColorInfo dstColorInfo,
const SkColor4f paintColor,
sk_sp< TextureProxy dstTexture,
SkIPoint  dstOffset 
)

Definition at line 15 of file KeyContext.cpp.

23 , fLocalMatrix(nullptr)
25 , fCaps(recorder->priv().caps())
26 , fDstTexture(std::move(dstTexture))
27 , fDstOffset(dstOffset) {
32}
const SkM44 & local2Dev() const
Definition KeyContext.h:59
Recorder * recorder() const
Definition KeyContext.h:55
const SkPMColor4f & paintColor() const
Definition KeyContext.h:72
static SkColor4f Color4fPrepForDst(SkColor4f srgb, const SkColorInfo &dstColorInfo)
const RuntimeEffectDictionary * runtimeEffectDictionary() const
const ShaderCodeDictionary * shaderCodeDictionary() const
const Caps * caps() const
float fA
alpha component
Definition SkColor.h:266

◆ KeyContext() [3/3]

skgpu::graphite::KeyContext::KeyContext ( const KeyContext other)

Definition at line 34 of file KeyContext.cpp.

35 : fRecorder(other.fRecorder)
36 , fLocal2Dev(other.fLocal2Dev)
37 , fLocalMatrix(other.fLocalMatrix)
38 , fDictionary(other.fDictionary)
39 , fRTEffectDict(other.fRTEffectDict)
40 , fDstColorInfo(other.fDstColorInfo)
41 , fPaintColor(other.fPaintColor)
42 , fScope(other.fScope)
43 , fCaps(other.fCaps)
44 , fDstTexture(other.fDstTexture)
45 , fDstOffset(other.fDstOffset) {}

Member Function Documentation

◆ caps()

const Caps * skgpu::graphite::KeyContext::caps ( ) const
inline

Definition at line 57 of file KeyContext.h.

57{ return fCaps; }

◆ dict()

ShaderCodeDictionary * skgpu::graphite::KeyContext::dict ( ) const
inline

Definition at line 62 of file KeyContext.h.

62{ return fDictionary; }

◆ dstColorInfo()

const SkColorInfo & skgpu::graphite::KeyContext::dstColorInfo ( ) const
inline

Definition at line 65 of file KeyContext.h.

65{ return fDstColorInfo; }

◆ dstOffset()

SkIPoint skgpu::graphite::KeyContext::dstOffset ( ) const
inline

Definition at line 70 of file KeyContext.h.

70{ return fDstOffset; }

◆ dstTexture()

sk_sp< TextureProxy > skgpu::graphite::KeyContext::dstTexture ( ) const
inline

Definition at line 68 of file KeyContext.h.

68{ return fDstTexture; }

◆ local2Dev()

const SkM44 & skgpu::graphite::KeyContext::local2Dev ( ) const
inline

Definition at line 59 of file KeyContext.h.

59{ return fLocal2Dev; }

◆ localMatrix()

const SkMatrix * skgpu::graphite::KeyContext::localMatrix ( ) const
inline

Definition at line 60 of file KeyContext.h.

60{ return fLocalMatrix; }

◆ paintColor()

const SkPMColor4f & skgpu::graphite::KeyContext::paintColor ( ) const
inline

Definition at line 72 of file KeyContext.h.

72{ return fPaintColor; }

◆ recorder()

Recorder * skgpu::graphite::KeyContext::recorder ( ) const
inline

Definition at line 55 of file KeyContext.h.

55{ return fRecorder; }

◆ rtEffectDict()

RuntimeEffectDictionary * skgpu::graphite::KeyContext::rtEffectDict ( ) const
inline

Definition at line 63 of file KeyContext.h.

63{ return fRTEffectDict; }

◆ scope()

Scope skgpu::graphite::KeyContext::scope ( ) const
inline

Definition at line 79 of file KeyContext.h.

79{ return fScope; }

Member Data Documentation

◆ fDictionary

ShaderCodeDictionary* skgpu::graphite::KeyContext::fDictionary
protected

Definition at line 85 of file KeyContext.h.

◆ fDstColorInfo

SkColorInfo skgpu::graphite::KeyContext::fDstColorInfo
protected

Definition at line 87 of file KeyContext.h.

◆ fLocal2Dev

SkM44 skgpu::graphite::KeyContext::fLocal2Dev
protected

Definition at line 83 of file KeyContext.h.

◆ fLocalMatrix

SkMatrix* skgpu::graphite::KeyContext::fLocalMatrix = nullptr
protected

Definition at line 84 of file KeyContext.h.

◆ fPaintColor

SkPMColor4f skgpu::graphite::KeyContext::fPaintColor = SK_PMColor4fBLACK
protected

Definition at line 91 of file KeyContext.h.

◆ fRecorder

Recorder* skgpu::graphite::KeyContext::fRecorder = nullptr
protected

Definition at line 82 of file KeyContext.h.

◆ fRTEffectDict

RuntimeEffectDictionary* skgpu::graphite::KeyContext::fRTEffectDict
protected

Definition at line 86 of file KeyContext.h.

◆ fScope

Scope skgpu::graphite::KeyContext::fScope = Scope::kDefault
protected

Definition at line 92 of file KeyContext.h.


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