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

#include <PaintParamsKey.h>

Public Member Functions

 PaintParamsKeyBuilder (const ShaderCodeDictionary *dict)
 
 ~PaintParamsKeyBuilder ()
 
void beginBlock (BuiltInCodeSnippetID id)
 
void beginBlock (int32_t codeSnippetID)
 
void endBlock ()
 
void addBlock (BuiltInCodeSnippetID id)
 
void addData (SkSpan< const uint32_t > data)
 

Friends

class AutoLockBuilderAsKey
 

Detailed Description

Definition at line 113 of file PaintParamsKey.h.

Constructor & Destructor Documentation

◆ PaintParamsKeyBuilder()

skgpu::graphite::PaintParamsKeyBuilder::PaintParamsKeyBuilder ( const ShaderCodeDictionary dict)
inline

Definition at line 115 of file PaintParamsKey.h.

115 {
116 SkDEBUGCODE(fDict = dict;)
117 }
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()

◆ ~PaintParamsKeyBuilder()

skgpu::graphite::PaintParamsKeyBuilder::~PaintParamsKeyBuilder ( )
inline

Definition at line 119 of file PaintParamsKey.h.

119{ SkASSERT(!fLocked); }
#define SkASSERT(cond)
Definition: SkAssert.h:116

Member Function Documentation

◆ addBlock()

void skgpu::graphite::PaintParamsKeyBuilder::addBlock ( BuiltInCodeSnippetID  id)
inline

Definition at line 140 of file PaintParamsKey.h.

140 {
141 this->beginBlock(id);
142 this->endBlock();
143 }
void beginBlock(BuiltInCodeSnippetID id)

◆ addData()

void skgpu::graphite::PaintParamsKeyBuilder::addData ( SkSpan< const uint32_t >  data)
inline

Definition at line 145 of file PaintParamsKey.h.

145 {
146 // First push the data size followed by the actual data.
147 fData.push_back(data.size());
148 fData.push_back_n(data.size(), data.begin());
149 }
T * push_back_n(int n)
Definition: SkTArray.h:267
std::shared_ptr< const fml::Mapping > data
Definition: texture_gles.cc:63

◆ beginBlock() [1/2]

void skgpu::graphite::PaintParamsKeyBuilder::beginBlock ( BuiltInCodeSnippetID  id)
inline

Definition at line 121 of file PaintParamsKey.h.

121{ this->beginBlock(static_cast<int32_t>(id)); }

◆ beginBlock() [2/2]

void skgpu::graphite::PaintParamsKeyBuilder::beginBlock ( int32_t  codeSnippetID)
inline

Definition at line 122 of file PaintParamsKey.h.

122 {
123 SkASSERT(!fLocked);
124 SkDEBUGCODE(this->pushStack(codeSnippetID);)
125 fData.push_back(codeSnippetID);
126 }

◆ endBlock()

void skgpu::graphite::PaintParamsKeyBuilder::endBlock ( )
inline

Definition at line 130 of file PaintParamsKey.h.

130 {
131 SkDEBUGCODE(this->popStack();)
132 }

Friends And Related Function Documentation

◆ AutoLockBuilderAsKey

friend class AutoLockBuilderAsKey
friend

Definition at line 152 of file PaintParamsKey.h.


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