Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
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, 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
 

Additional Inherited Members

- Public Types inherited from skgpu::graphite::KeyContext
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
 

Detailed Description

Definition at line 120 of file KeyContext.h.

Constructor & Destructor Documentation

◆ KeyContextWithColorInfo()

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

Definition at line 122 of file KeyContext.h.

122 : KeyContext(other) {
123 // We want to keep fPaintColor's alpha value but replace the RGB with values in the new
124 // color space
126 tmp.fA = 1.0f;
128 fPaintColor.fR = tmp.fR;
129 fPaintColor.fG = tmp.fG;
130 fPaintColor.fB = tmp.fB;
132 }
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:32
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: