Lines Matching refs:promiseImage
137 sk_sp<SkPromiseImageTexture> DDLFuzzer::fulfillPromiseImage(PromiseImageInfo& promiseImage) { in fulfillPromiseImage() argument
143 State prior = promiseImage.fState.exchange(State::kTriedToFulfill, std::memory_order_relaxed); in fulfillPromiseImage()
144 if (prior != State::kInitial || promiseImage.fTexture != nullptr) { in fulfillPromiseImage()
153 promiseImage.fTexture = std::move(fReusableTextures.front()); in fulfillPromiseImage()
155 return promiseImage.fTexture; in fulfillPromiseImage()
177 promiseImage.fTexture = SkPromiseImageTexture::Make(backendTex); in fulfillPromiseImage()
179 return promiseImage.fTexture; in fulfillPromiseImage()
182 void DDLFuzzer::releasePromiseImage(PromiseImageInfo& promiseImage) { in releasePromiseImage() argument
188 State old = promiseImage.fState.exchange(State::kInitial, std::memory_order_relaxed); in releasePromiseImage()
194 if (!promiseImage.fTexture) { in releasePromiseImage()
200 fReusableTextures.push(std::move(promiseImage.fTexture)); in releasePromiseImage()
202 fContext->deleteBackendTexture(promiseImage.fTexture->backendTexture()); in releasePromiseImage()
204 promiseImage.fTexture = nullptr; in releasePromiseImage()
218 PromiseImageInfo& promiseImage = fPromiseImages[index]; in initPromiseImage() local
219 promiseImage.fFuzzer = this; in initPromiseImage()
222 promiseImage.fImage = SkImage::MakePromiseTexture(fContext->threadSafeProxy(), in initPromiseImage()
232 &promiseImage); in initPromiseImage()