#include <PaintParamsKey.h>
Definition at line 41 of file PaintParamsKey.h.
◆ PaintParamsKey()
constexpr skgpu::graphite::PaintParamsKey::PaintParamsKey |
( |
const PaintParamsKey & |
| ) |
|
|
constexprdefault |
◆ ~PaintParamsKey()
skgpu::graphite::PaintParamsKey::~PaintParamsKey |
( |
| ) |
|
|
default |
◆ clone()
Definition at line 55 of file PaintParamsKey.cpp.
55 {
59}
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 108 of file PaintParamsKey.cpp.
109 {
110
111
112
113
114 const int keySize = SkTo<int>(fData.
size());
115
116
118 int currentIndex = 0;
119 while (currentIndex < keySize) {
120 const ShaderNode*
root = this->createNode(dict, ¤tIndex, arena);
122 return {};
123 }
125 }
126
127
128 const ShaderNode** rootSpan = arena->
makeArray<
const ShaderNode*>(
roots.size());
129 memcpy(rootSpan,
roots.data(),
roots.size_bytes());
131}
SkSpan(Container &&) -> SkSpan< std::remove_pointer_t< decltype(std::data(std::declval< Container >()))> >
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 74 of file PaintParamsKey.h.
74 {
75 return fData.
size() == that.fData.size() &&
76 !memcmp(fData.
data(), that.fData.data(), fData.
size());
77 }
◆ toString()
Definition at line 188 of file PaintParamsKey.cpp.
188 {
190 const int keySize = SkTo<int>(fData.
size());
191 for (int currentIndex = 0; currentIndex < keySize;) {
192 currentIndex =
key_to_string(&str, dict, fData, currentIndex, includeData);
193 }
195}
static int key_to_string(SkString *str, const ShaderCodeDictionary *dict, SkSpan< const uint32_t > keyData, int currentIndex, bool includeData)
◆ PaintParamsKeyBuilder
The documentation for this class was generated from the following files: