Home
last modified time | relevance | path

Searched refs:curImage (Results 1 – 2 of 2) sorted by relevance

/third_party/flutter/skia/tools/
DDDLPromiseImageHelper.cpp164 const DDLPromiseImageHelper::PromiseImageInfo& curImage = helper->getInfo(*indexPtr); in PromiseImageCreator() local
166 if (!curImage.promiseTexture(0)) { in PromiseImageCreator()
167 SkASSERT(!curImage.isYUV()); in PromiseImageCreator()
170 SkASSERT(curImage.normalBitmap().isImmutable()); in PromiseImageCreator()
171 return SkImage::MakeFromBitmap(curImage.normalBitmap()); in PromiseImageCreator()
173 SkASSERT(curImage.index() == *indexPtr); in PromiseImageCreator()
176 if (curImage.isYUV()) { in PromiseImageCreator()
182 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator()
184 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator()
187 contexts[i] = curImage.refCallbackContext(i).release(); in PromiseImageCreator()
[all …]
/third_party/skia/tools/
DDDLPromiseImageHelper.cpp314 const DDLPromiseImageHelper::PromiseImageInfo& curImage = helper->getInfo(*indexPtr); in CreatePromiseImages() local
318 if (!curImage.isYUV() && !curImage.callbackContext(0)) { in CreatePromiseImages()
319 SkASSERT(curImage.baseLevel().isImmutable()); in CreatePromiseImages()
320 return curImage.baseLevel().asImage(); in CreatePromiseImages()
323 SkASSERT(curImage.index() == *indexPtr); in CreatePromiseImages()
326 if (curImage.isYUV()) { in CreatePromiseImages()
328 const SkYUVAInfo& yuvaInfo = curImage.yuvaInfo(); in CreatePromiseImages()
332 backendFormats[i] = curImage.backendFormat(i); in CreatePromiseImages()
333 contexts[i] = curImage.refCallbackContext(i).release(); in CreatePromiseImages()
342 curImage.refOverallColorSpace(), in CreatePromiseImages()
[all …]