Lines Matching refs:shape
73 // This stores the mapping from an unclipped, integerized, device-space, shape bounds to
100 const GrStyledShape& shape,
107 SkASSERT(!shape.style().applies());
124 SkStrokeRec::InitStyle fillOrHairline = shape.style().isSimpleHairline()
132 shape.asPath(&devPath);
188 // Create a mask of 'shape' and return the resulting surfaceDrawContext
193 const GrStyledShape& shape,
240 sdc->drawShape(&clip, std::move(maskPaint), GrAA::kYes, viewMatrix, GrStyledShape(shape));
244 static bool get_unclipped_shape_dev_bounds(const GrStyledShape& shape, const SkMatrix& matrix,
246 SkRect shapeBounds = shape.styledBounds();
269 // Gets the shape bounds, the clip bounds, and the intersection (if any). Returns false if there
273 const GrStyledShape& shape,
281 if (!get_unclipped_shape_dev_bounds(shape, matrix, unclippedDevShapeBounds)) {
291 // A 'false' return value indicates that the shape is known to be clipped away.
298 const GrStyledShape& shape,
308 shape.hasUnstyledKey() && as_MFB(maskFilter)->asABlur(nullptr);
312 maskFilter->canFilterMaskGPU(shape, unclippedDevShapeBounds, devClipBounds,
314 maskFilter->canFilterMaskGPU(shape, unclippedDevShapeBounds, unclippedDevShapeBounds,
337 GrUniqueKey::Builder builder(maskKey, kDomain, 5 + 2 + shape.unstyledKeySize(),
360 uint32_t styleBits = shape.style().isSimpleHairline()
361 ? ((shape.style().strokeRec().getCap() << 1) | 1)
370 shape.writeUnstyledKey(&builder[7]);
380 const GrStyledShape& shape,
387 if (!filter->canFilterMaskGPU(shape,
437 shape,
454 if (canUseSDFBlur && shape.asRRect(&srcRRect, nullptr, nullptr, &inverted)) {
502 const GrStyledShape* shape = &origShape;
516 shape = tmpShape.get();
519 bool canUseSDFBlur = SDFBlur::isSDFBlur(*shape) && (paint.numTotalFragmentProcessors() == 0);
522 viewMatrix, *shape)) {
530 bool inverseFilled = shape->inverseFilled() &&
531 !GrIsStrokeHairlineOrEquivalent(shape->style(), viewMatrix, nullptr);
537 if (canUseSDFBlur && shape->asRRect(&srcRRect, nullptr, nullptr, &inverted)) {
542 if (!get_shape_and_clip_bounds(sdc, clip, *shape, canUseSDFBlur ? matrixScale : viewMatrix,
555 maskFilter, *shape,
559 return; // 'shape' was entirely clipped out
568 *shape, maskFilter,
590 *shape, unclippedDevShapeBounds, devClipBounds)) {
595 viewMatrix, *shape, maskFilter,
609 const GrStyledShape& shape,
614 viewMatrix, as_MFB(mf), shape);
622 const GrStyledShape& shape) {
636 draw_shape_with_mask_filter(rContext, sdc, clip, std::move(grPaint), viewMatrix, mf, shape);
639 GrStyledShape(shape));