#include <SkDescriptor.h>
Definition at line 86 of file SkDescriptor.h.
◆ SkAutoDescriptor() [1/5]
SkAutoDescriptor::SkAutoDescriptor |
( |
| ) |
|
|
default |
◆ SkAutoDescriptor() [2/5]
SkAutoDescriptor::SkAutoDescriptor |
( |
size_t |
size | ) |
|
|
explicit |
◆ SkAutoDescriptor() [3/5]
SkAutoDescriptor::SkAutoDescriptor |
( |
const SkDescriptor & |
desc | ) |
|
|
explicit |
◆ SkAutoDescriptor() [4/5]
◆ SkAutoDescriptor() [5/5]
Definition at line 154 of file SkDescriptor.cpp.
154 {
157 } else {
158 fDesc = that.fDesc;
159 that.fDesc = nullptr;
160 }
161}
◆ ~SkAutoDescriptor()
SkAutoDescriptor::~SkAutoDescriptor |
( |
| ) |
|
◆ getDesc()
◆ MakeFromBuffer()
Definition at line 175 of file SkDescriptor.cpp.
175 {
178
179
180
183
184
185 if (bodyLength >
buffer.available()) {
186 return {};
187 }
188
190 memcpy(ad.fDesc, &descriptorHeader,
sizeof(
SkDescriptor));
191 if (!
buffer.readPad32(SkTAddOffset<void>(ad.fDesc,
sizeof(
SkDescriptor)), bodyLength)) {
192 return {};
193 }
194
195
196
197
198#if defined(SK_BUILD_FOR_FUZZER)
199 SkDescriptor::ComputeChecksum(ad.getDesc());
200#else
201 if (SkDescriptor::ComputeChecksum(ad.getDesc()) != ad.getDesc()->fChecksum) { return {}; }
202#endif
203 if (!ad.getDesc()->isValid()) { return {}; }
204
205 return {ad};
206}
uint32_t getLength() const
static const uint8_t buffer[]
◆ operator=() [1/2]
◆ operator=() [2/2]
Definition at line 162 of file SkDescriptor.cpp.
162 {
165 } else {
166 this->free();
167 fDesc = that.fDesc;
168 that.fDesc = nullptr;
169 }
170 return *this;
171}
◆ reset() [1/2]
Definition at line 217 of file SkDescriptor.cpp.
217 {
220 memcpy(fDesc, &desc, size);
221}
it will be possible to load the file into Perfetto s trace viewer disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
◆ reset() [2/2]
void SkAutoDescriptor::reset |
( |
size_t |
size | ) |
|
Definition at line 208 of file SkDescriptor.cpp.
208 {
209 this->free();
210 if (size <= sizeof(fStorage)) {
212 } else {
214 }
215}
static std::unique_ptr< SkDescriptor > Alloc(size_t length)
The documentation for this class was generated from the following files: