Home
last modified time | relevance | path

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

/external/skia/tools/
DDDLPromiseImageHelper.cpp175 const DDLPromiseImageHelper::PromiseImageInfo& curImage = helper->getInfo(*indexPtr); in PromiseImageCreator() local
177 if (!curImage.promiseTexture(0)) { in PromiseImageCreator()
178 SkASSERT(!curImage.isYUV()); in PromiseImageCreator()
181 SkASSERT(curImage.normalBitmap().isImmutable()); in PromiseImageCreator()
182 return SkImage::MakeFromBitmap(curImage.normalBitmap()); in PromiseImageCreator()
184 SkASSERT(curImage.index() == *indexPtr); in PromiseImageCreator()
187 if (curImage.isYUV()) { in PromiseImageCreator()
193 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator()
195 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator()
198 contexts[i] = curImage.refCallbackContext(i).release(); in PromiseImageCreator()
[all …]
/external/skqp/tools/
DDDLPromiseImageHelper.cpp208 const DDLPromiseImageHelper::PromiseImageInfo& curImage = helper->getInfo(*indexPtr); in PromiseImageCreator() local
210 if (!curImage.promiseTexture(0)) { in PromiseImageCreator()
211 SkASSERT(!curImage.isYUV()); in PromiseImageCreator()
214 SkASSERT(curImage.normalBitmap().isImmutable()); in PromiseImageCreator()
215 return SkImage::MakeFromBitmap(curImage.normalBitmap()); in PromiseImageCreator()
217 SkASSERT(curImage.index() == *indexPtr); in PromiseImageCreator()
220 if (curImage.isYUV()) { in PromiseImageCreator()
226 SkAssertResult(SkYUVAIndex::AreValidIndices(curImage.yuvaIndices(), &textureCount)); in PromiseImageCreator()
228 const GrBackendTexture& backendTex = curImage.promiseTexture(i)->backendTexture(); in PromiseImageCreator()
231 contexts[i] = curImage.refCallbackContext(i).release(); in PromiseImageCreator()
[all …]