#include <PaintParamsKey.h>
Definition at line 36 of file PaintParamsKey.h.
◆ PaintParamsKey()
constexpr skgpu::graphite::PaintParamsKey::PaintParamsKey |
( |
const PaintParamsKey & |
| ) |
|
|
constexprdefault |
◆ ~PaintParamsKey()
skgpu::graphite::PaintParamsKey::~PaintParamsKey |
( |
| ) |
|
|
default |
◆ clone()
Definition at line 54 of file PaintParamsKey.cpp.
54 {
58}
T * makeArrayDefault(size_t count)
constexpr T * data() const
constexpr size_t size_bytes() const
constexpr size_t size() const
constexpr PaintParamsKey(const PaintParamsKey &)=default
◆ getRootNodes()
Definition at line 86 of file PaintParamsKey.cpp.
87 {
88
89
90
91
92 const int keySize = SkTo<int>(fData.
size());
93
94
96 int currentIndex = 0;
97 while (currentIndex < keySize) {
98 const ShaderNode*
root = this->createNode(dict, ¤tIndex, arena);
99 if (!root) {
100 return {};
101 }
102 roots.push_back(root);
103 }
104
105
106 const ShaderNode** rootSpan = arena->
makeArray<
const ShaderNode*>(
roots.size());
107 memcpy(rootSpan,
roots.data(),
roots.size_bytes());
109}
T * makeArray(size_t count)
◆ Invalid()
static constexpr PaintParamsKey skgpu::graphite::PaintParamsKey::Invalid |
( |
| ) |
|
|
inlinestaticconstexpr |
◆ isValid()
bool skgpu::graphite::PaintParamsKey::isValid |
( |
| ) |
const |
|
inline |
◆ operator!=()
bool skgpu::graphite::PaintParamsKey::operator!= |
( |
const PaintParamsKey & |
that | ) |
const |
|
inline |
◆ operator=()
◆ operator==()
bool skgpu::graphite::PaintParamsKey::operator== |
( |
const PaintParamsKey & |
that | ) |
const |
|
inline |
Definition at line 68 of file PaintParamsKey.h.
68 {
69 return fData.
size() == that.fData.size() &&
70 !memcmp(fData.
data(), that.fData.data(), fData.
size());
71 }
◆ toString()
Definition at line 144 of file PaintParamsKey.cpp.
144 {
146 const int keySize = SkTo<int>(fData.
size());
147 for (int currentIndex = 0; currentIndex < keySize; ) {
148 currentIndex =
key_to_string(&str, dict, fData, currentIndex);
149 }
151}
static int key_to_string(SkString *str, const ShaderCodeDictionary *dict, SkSpan< const int32_t > keyData, int currentIndex)
◆ PaintParamsKeyBuilder
The documentation for this class was generated from the following files: