Lines Matching refs:ShapeData
52 ShapeData* shapeData;
53 while ((shapeData = iter.get())) {
55 if (id == shapeData->fID) {
56 dfpr->fShapeCache.remove(shapeData->fKey);
57 dfpr->fShapeList.remove(shapeData);
58 delete shapeData;
72 ShapeData* shapeData;
73 while ((shapeData = iter.get())) {
75 delete shapeData;
137 using ShapeData = GrSmallPathRenderer::ShapeData;
138 using ShapeCache = SkTDynamicHash<ShapeData, ShapeData::Key>;
286 ShapeData* shapeData;
333 ShapeData::Key key(args.fShape, SkScalarCeilToInt(desiredDimension));
334 shapeData = fShapeCache->find(key);
335 if (nullptr == shapeData || !fAtlas->hasID(shapeData->fID)) {
337 if (shapeData) {
338 fShapeCache->remove(shapeData->fKey);
339 fShapeList->remove(shapeData);
340 delete shapeData;
344 shapeData = new ShapeData;
348 shapeData,
352 delete shapeData;
358 ShapeData::Key key(args.fShape, args.fViewMatrix);
359 shapeData = fShapeCache->find(key);
360 if (nullptr == shapeData || !fAtlas->hasID(shapeData->fID)) {
362 if (shapeData) {
363 fShapeCache->remove(shapeData->fKey);
364 fShapeList->remove(shapeData);
365 delete shapeData;
368 shapeData = new ShapeData;
372 shapeData,
375 delete shapeData;
382 fAtlas->setLastUseToken(shapeData->fID, uploadTarget->tokenTracker()->nextDrawToken());
389 shapeData);
398 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape,
500 shapeData->fKey.set(shape, dimension);
501 shapeData->fID = id;
503 shapeData->fBounds = SkRect::Make(devPathBounds);
504 shapeData->fBounds.offset(-translateX, -translateY);
505 shapeData->fBounds.fLeft /= scale;
506 shapeData->fBounds.fTop /= scale;
507 shapeData->fBounds.fRight /= scale;
508 shapeData->fBounds.fBottom /= scale;
515 shapeData->fTextureCoords.set((atlasLocation.fX+SK_DistanceFieldPad) << 1 | uBit,
522 fShapeCache->add(shapeData);
523 fShapeList->addToTail(shapeData);
531 GrDrawOpAtlas* atlas, ShapeData* shapeData, const GrShape& shape,
605 shapeData->fKey.set(shape, ctm);
606 shapeData->fID = id;
608 shapeData->fBounds = SkRect::Make(devPathBounds);
609 shapeData->fBounds.offset(-translateX, -translateY);
616 shapeData->fTextureCoords.set(atlasLocation.fX << 1 | uBit, atlasLocation.fY << 1 | vBit,
620 fShapeCache->add(shapeData);
621 fShapeList->addToTail(shapeData);
633 const ShapeData* shapeData) const {
636 SkRect bounds = shapeData->fBounds;
675 uint16_t l = shapeData->fTextureCoords.fLeft;
676 uint16_t t = shapeData->fTextureCoords.fTop;
677 uint16_t r = shapeData->fTextureCoords.fRight;
678 uint16_t b = shapeData->fTextureCoords.fBottom;
824 ShapeData* shapeData;
825 while ((shapeData = iter.get())) {
827 fShapeList.remove(shapeData);
828 delete shapeData;
839 ShapeData* shapeData;
840 while ((shapeData = iter.get())) {
842 if (id == shapeData->fID) {
843 dfpr->fShapeCache.remove(shapeData->fKey);
844 dfpr->fShapeList.remove(shapeData);
845 delete shapeData;