#include <DDLPromiseImageHelper.h>
Definition at line 107 of file DDLPromiseImageHelper.h.
◆ DDLPromiseImageHelper()
◆ ~DDLPromiseImageHelper()
DDLPromiseImageHelper::~DDLPromiseImageHelper |
( |
| ) |
|
|
default |
◆ deleteAllFromGPU()
Definition at line 279 of file DDLPromiseImageHelper.cpp.
279 {
280 if (taskGroup) {
281 for (
int i = 0;
i < fImageInfo.
size(); ++
i) {
283
284 taskGroup->
add([
info]() { DeleteBETexturesForPromiseImage(
info); });
285 }
286 } else {
287 for (
int i = 0;
i < fImageInfo.
size(); ++
i) {
288 DeleteBETexturesForPromiseImage(&fImageInfo[
i]);
289 }
290 }
291}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
void add(std::function< void(void)> fn)
◆ recreateSKP()
Definition at line 100 of file DDLPromiseImageHelper.cpp.
101 {
103
107
108 int id = helper->findOrDefineImage(
image);
109
110
112 };
113
115 if (!compressedPictureData) {
116 return nullptr;
117 }
118
119 this->createCallbackContexts(dContext);
120
122}
sk_sp< GrContextThreadSafeProxy > threadSafeProxy()
static sk_sp< SkData > MakeWithCopy(const void *data, size_t length)
sk_sp< SkData > serialize(const SkSerialProcs *procs=nullptr) const
sk_sp< const SkImage > image
SkSerialImageProc fImageProc
◆ reset()
void DDLPromiseImageHelper::reset |
( |
| ) |
|
|
inline |
◆ uploadAllToGPU()
Definition at line 265 of file DDLPromiseImageHelper.cpp.
265 {
266 if (taskGroup) {
267 for (
int i = 0;
i < fImageInfo.
size(); ++
i) {
269
270 taskGroup->
add([direct,
info]() { CreateBETexturesForPromiseImage(direct,
info); });
271 }
272 } else {
273 for (
int i = 0;
i < fImageInfo.
size(); ++
i) {
274 CreateBETexturesForPromiseImage(direct, &fImageInfo[
i]);
275 }
276 }
277}
The documentation for this class was generated from the following files: