Lines Matching refs:quad
176 static bool is_simple_rect(const GrQuad& quad) { in is_simple_rect() argument
177 if (quad.quadType() != GrQuad::Type::kAxisAligned) { in is_simple_rect()
183 return ((quad.x(0) + SK_ScalarNearlyZero) < quad.x(2)) && in is_simple_rect()
184 ((quad.y(0) + SK_ScalarNearlyZero) < quad.y(1)); in is_simple_rect()
218 void ResolveAAType(GrAAType requestedAAType, GrQuadAAFlags requestedEdgeFlags, const GrQuad& quad, in ResolveAAType() argument
233 if (quad.quadType() == GrQuad::Type::kAxisAligned && !quad.aaHasEffectOnRect()) { in ResolveAAType()
250 bool CropToRect(const SkRect& cropRect, GrAA cropAA, GrQuadAAFlags* edgeFlags, GrQuad* quad, in CropToRect() argument
252 SkASSERT(quad->isFinite()); in CropToRect()
254 if (quad->quadType() == GrQuad::Type::kAxisAligned) { in CropToRect()
260 if (is_simple_rect(*quad) && is_simple_rect(*local)) { in CropToRect()
261 clippedEdges = crop_simple_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
264 clippedEdges = crop_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
268 if (is_simple_rect(*quad)) { in CropToRect()
269 clippedEdges = crop_simple_rect(cropRect, quad->xs(), quad->ys(), nullptr, nullptr); in CropToRect()
271 clippedEdges = crop_rect(cropRect, quad->xs(), quad->ys(), in CropToRect()
292 V4f devX = quad->x4f(); in CropToRect()
293 V4f devY = quad->y4f(); in CropToRect()
294 V4f devIW = quad->iw4f(); in CropToRect()
296 if (quad->quadType() == GrQuad::Type::kPerspective) { in CropToRect()
326 clipX.store(quad->xs()); in CropToRect()
327 clipY.store(quad->ys()); in CropToRect()
328 quad->ws()[0] = 1.f; in CropToRect()
329 quad->ws()[1] = 1.f; in CropToRect()
330 quad->ws()[2] = 1.f; in CropToRect()
331 quad->ws()[3] = 1.f; in CropToRect()
332 quad->setQuadType(GrQuad::Type::kAxisAligned); in CropToRect()