Home | History | Annotate | Download | only in ops

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>;
289 ShapeData* shapeData;
336 ShapeData::Key key(args.fShape, SkScalarCeilToInt(desiredDimension));
337 shapeData = fShapeCache->find(key);
338 if (nullptr == shapeData || !atlas->hasID(shapeData->fID)) {
340 if (shapeData) {
341 fShapeCache->remove(shapeData->fKey);
342 fShapeList->remove(shapeData);
343 delete shapeData;
347 shapeData = new ShapeData;
351 shapeData,
355 delete shapeData;
361 ShapeData::Key key(args.fShape, args.fViewMatrix);
362 shapeData = fShapeCache->find(key);
363 if (nullptr == shapeData || !atlas->hasID(shapeData->fID)) {
365 if (shapeData) {
366 fShapeCache->remove(shapeData->fKey);
367 fShapeList->remove(shapeData);
368 delete shapeData;
371 shapeData = new ShapeData;
375 shapeData,
378 delete shapeData;
385 atlas->setLastUseToken(shapeData->fID, uploadTarget->tokenTracker()->nextDrawToken());
392 shapeData);
401 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,
603 shapeData->fKey.set(shape, ctm);
604 shapeData->fID = id;
606 shapeData->fBounds = SkRect::Make(devPathBounds);
607 shapeData->fBounds.offset(-translateX, -translateY);
614 shapeData->fTextureCoords.set(atlasLocation.fX << 1 | uBit, atlasLocation.fY << 1 | vBit,
618 fShapeCache->add(shapeData);
619 fShapeList->addToTail(shapeData);
631 const ShapeData* shapeData) const {
634 SkRect bounds = shapeData->fBounds;
673 uint16_t l = shapeData->fTextureCoords.fLeft;
674 uint16_t t = shapeData->fTextureCoords.fTop;
675 uint16_t r = shapeData->fTextureCoords.fRight;
676 uint16_t b = shapeData->fTextureCoords.fBottom;
822 ShapeData* shapeData;
823 while ((shapeData = iter.get())) {
825 fShapeList.remove(shapeData);
826 delete shapeData;
837 ShapeData* shapeData;
838 while ((shapeData = iter.get())) {
840 if (id == shapeData->fID) {
841 dfpr->fShapeCache.remove(shapeData->fKey);
842 dfpr->fShapeList.remove(shapeData);
843 delete shapeData;