Flutter Engine
The Flutter Engine
Public Member Functions | List of all members
skgpu::graphite::KeyContextWithColorInfo Class Reference

#include <KeyContext.h>

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

Public Member Functions

 KeyContextWithColorInfo (const KeyContext &other, const SkColorInfo &info)
 
- Public Member Functions inherited from skgpu::graphite::KeyContext
 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, OptimizeSampling optimizeSampling, 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
 
OptimizeSampling optimizeSampling () const
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::KeyContext
enum class  OptimizeSampling : bool { kNo = false , kYes = true }
 
enum class  Scope { kDefault , kRuntimeEffect }
 
- Protected Attributes inherited from skgpu::graphite::KeyContext
RecorderfRecorder = nullptr
 
SkM44 fLocal2Dev
 
SkMatrixfLocalMatrix = nullptr
 
ShaderCodeDictionaryfDictionary
 
RuntimeEffectDictionaryfRTEffectDict
 
SkColorInfo fDstColorInfo
 
SkPMColor4f fPaintColor = SK_PMColor4fBLACK
 
Scope fScope = Scope::kDefault
 
OptimizeSampling fOptimizeSampling = OptimizeSampling::kNo
 

Detailed Description

Definition at line 124 of file KeyContext.h.

Constructor & Destructor Documentation

◆ KeyContextWithColorInfo()

skgpu::graphite::KeyContextWithColorInfo::KeyContextWithColorInfo ( const KeyContext other,
const SkColorInfo info 
)
inline

Definition at line 126 of file KeyContext.h.

126 : KeyContext(other) {
127 // We want to keep fPaintColor's alpha value but replace the RGB with values in the new
128 // color space
130 tmp.fA = 1.0f;
132 fPaintColor.fR = tmp.fR;
133 fPaintColor.fG = tmp.fG;
134 fPaintColor.fB = tmp.fB;
136 }
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
KeyContext(const Caps *caps, ShaderCodeDictionary *dict, RuntimeEffectDictionary *rtEffectDict, const SkColorInfo &dstColorInfo, sk_sp< TextureProxy > dstTexture, SkIPoint dstOffset)
Definition: KeyContext.h:33
void apply(float rgba[4]) const
const float * vec() const
Definition: SkColor.h:308
float fB
blue component
Definition: SkColor.h:265
float fR
red component
Definition: SkColor.h:263
float fG
green component
Definition: SkColor.h:264
float fA
alpha component
Definition: SkColor.h:266

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