• Home
  • Raw
  • Download

Lines Matching refs:shapeData

144     ShapeData* shapeData;  in HandleEviction()  local
145 while ((shapeData = iter.get())) { in HandleEviction()
147 if (id == shapeData->fID) { in HandleEviction()
148 dfpr->fShapeCache.remove(shapeData->fKey); in HandleEviction()
149 dfpr->fShapeList.remove(shapeData); in HandleEviction()
150 delete shapeData; in HandleEviction()
164 ShapeData* shapeData; in ~GrSmallPathRenderer() local
165 while ((shapeData = iter.get())) { in ~GrSmallPathRenderer()
167 delete shapeData; in ~GrSmallPathRenderer()
393 ShapeData* shapeData; in onPrepareDraws() local
441 shapeData = fShapeCache->find(key); in onPrepareDraws()
442 if (nullptr == shapeData || !fAtlas->hasID(shapeData->fID)) { in onPrepareDraws()
444 if (shapeData) { in onPrepareDraws()
445 fShapeCache->remove(shapeData->fKey); in onPrepareDraws()
446 fShapeList->remove(shapeData); in onPrepareDraws()
447 delete shapeData; in onPrepareDraws()
451 shapeData = new ShapeData; in onPrepareDraws()
455 shapeData, in onPrepareDraws()
459 delete shapeData; in onPrepareDraws()
466 shapeData = fShapeCache->find(key); in onPrepareDraws()
467 if (nullptr == shapeData || !fAtlas->hasID(shapeData->fID)) { in onPrepareDraws()
469 if (shapeData) { in onPrepareDraws()
470 fShapeCache->remove(shapeData->fKey); in onPrepareDraws()
471 fShapeList->remove(shapeData); in onPrepareDraws()
472 delete shapeData; in onPrepareDraws()
475 shapeData = new ShapeData; in onPrepareDraws()
479 shapeData, in onPrepareDraws()
482 delete shapeData; in onPrepareDraws()
489 fAtlas->setLastUseToken(shapeData->fID, uploadTarget->tokenTracker()->nextDrawToken()); in onPrepareDraws()
492 args.fViewMatrix, shapeData); in onPrepareDraws()
523 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addDFPathToAtlas() argument
619 shapeData->fKey.set(shape, dimension); in addDFPathToAtlas()
620 shapeData->fID = id; in addDFPathToAtlas()
622 shapeData->fBounds = SkRect::Make(devPathBounds); in addDFPathToAtlas()
623 shapeData->fBounds.offset(-translateX, -translateY); in addDFPathToAtlas()
624 shapeData->fBounds.fLeft /= scale; in addDFPathToAtlas()
625 shapeData->fBounds.fTop /= scale; in addDFPathToAtlas()
626 shapeData->fBounds.fRight /= scale; in addDFPathToAtlas()
627 shapeData->fBounds.fBottom /= scale; in addDFPathToAtlas()
634 shapeData->fTextureCoords.set((atlasLocation.fX+SK_DistanceFieldPad) << 1 | uBit, in addDFPathToAtlas()
641 fShapeCache->add(shapeData); in addDFPathToAtlas()
642 fShapeList->addToTail(shapeData); in addDFPathToAtlas()
650 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape, in addBMPathToAtlas() argument
721 shapeData->fKey.set(shape, ctm); in addBMPathToAtlas()
722 shapeData->fID = id; in addBMPathToAtlas()
724 shapeData->fBounds = SkRect::Make(devPathBounds); in addBMPathToAtlas()
725 shapeData->fBounds.offset(-translateX, -translateY); in addBMPathToAtlas()
732 shapeData->fTextureCoords.set(atlasLocation.fX << 1 | uBit, atlasLocation.fY << 1 | vBit, in addBMPathToAtlas()
736 fShapeCache->add(shapeData); in addBMPathToAtlas()
737 fShapeList->addToTail(shapeData); in addBMPathToAtlas()
748 const ShapeData* shapeData) const { in writePathVertices()
749 SkRect translatedBounds(shapeData->fBounds); in writePathVertices()
757 (uint16_t)shapeData->fTextureCoords.fLeft, in writePathVertices()
758 (uint16_t)shapeData->fTextureCoords.fTop, in writePathVertices()
759 (uint16_t)shapeData->fTextureCoords.fRight, in writePathVertices()
760 (uint16_t)shapeData->fTextureCoords.fBottom in writePathVertices()
910 ShapeData* shapeData; in reset() local
911 while ((shapeData = iter.get())) { in reset()
913 fShapeList.remove(shapeData); in reset()
914 delete shapeData; in reset()
925 ShapeData* shapeData; in HandleEviction() local
926 while ((shapeData = iter.get())) { in HandleEviction()
928 if (id == shapeData->fID) { in HandleEviction()
929 dfpr->fShapeCache.remove(shapeData->fKey); in HandleEviction()
930 dfpr->fShapeList.remove(shapeData); in HandleEviction()
931 delete shapeData; in HandleEviction()