Lines Matching refs:tile
76 TileData* tile = &fTiles[i]; in createComposeDDL() local
77 if (!tile->initialized()) { in createComposeDDL()
81 sk_sp<SkImage> promiseImage = tile->makePromiseImageForDst( in createComposeDDL()
84 SkRect dstRect = SkRect::Make(tile->clipRect()); in createComposeDDL()
85 SkIRect srcRect = tile->clipRect(); in createComposeDDL()
86 srcRect.offsetTo(tile->padOffset().x(), tile->padOffset().y()); in createComposeDDL()
192 void DDLTileHelper::TileData::CreateBackendTexture(GrDirectContext* direct, TileData* tile) { in CreateBackendTexture() argument
193 SkASSERT(tile->fCallbackContext && !tile->fCallbackContext->promiseImageTexture()); in CreateBackendTexture()
195 const SkSurfaceCharacterization& c = tile->fPlaybackChar; in CreateBackendTexture()
199 tile->fCallbackContext->setBackendTexture(beTex); in CreateBackendTexture()
202 void DDLTileHelper::TileData::DeleteBackendTexture(GrDirectContext*, TileData* tile) { in DeleteBackendTexture() argument
203 if (!tile->initialized()) { in DeleteBackendTexture()
207 SkASSERT(tile->fCallbackContext); in DeleteBackendTexture()
211 SkASSERT(!tile->fCallbackContext->promiseImageTexture() || in DeleteBackendTexture()
212 tile->fCallbackContext->promiseImageTexture()->backendTexture().isValid()); in DeleteBackendTexture()
214 tile->fTileSurface = nullptr; in DeleteBackendTexture()
216 SkASSERT(tile->fCallbackContext->unique()); in DeleteBackendTexture()
217 tile->fCallbackContext.reset(); in DeleteBackendTexture()
281 static void do_gpu_stuff(GrDirectContext* direct, DDLTileHelper::TileData* tile) { in do_gpu_stuff() argument
284 tile->precompile(direct); in do_gpu_stuff()
286 tile->draw(direct); in do_gpu_stuff()
288 tile->dropDDL(); in do_gpu_stuff()
299 TileData* tile = &fTiles[i]; in kickOffThreadedWork() local
300 if (!tile->initialized()) { in kickOffThreadedWork()
309 recordingTaskGroup->add([tile, gpuTaskGroup, dContext, picture]() { in kickOffThreadedWork()
310 tile->createDDL(picture); in kickOffThreadedWork()
312 gpuTaskGroup->add([dContext, tile]() { in kickOffThreadedWork()
313 do_gpu_stuff(dContext, tile); in kickOffThreadedWork()
353 TileData* tile = &fTiles[i]; in createBackendTextures() local
354 if (!tile->initialized()) { in createBackendTextures()
358 taskGroup->add([direct, tile]() { TileData::CreateBackendTexture(direct, tile); }); in createBackendTextures()
370 TileData* tile = &fTiles[i]; in deleteBackendTextures() local
372 taskGroup->add([direct, tile]() { TileData::DeleteBackendTexture(direct, tile); }); in deleteBackendTextures()