Lines Matching refs:factory

206         sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix,  in find()  argument
209 if (fEntries[i].fFactory.isCompatible(factory, translate)) { in find()
229 sk_sp<SkVertices> add(const SkPath& path, const FACTORY& factory, const SkMatrix& matrix) { in add() argument
230 sk_sp<SkVertices> vertices = factory.makeVertices(path, matrix); in add()
241 fEntries[i].fFactory = factory; in add()
291 sk_sp<SkVertices> find(const FACTORY& factory, const SkMatrix& matrix, in find() argument
293 return fTessellations->find(factory, matrix, translate); in find()
309 FindContext(const SkMatrix* viewMatrix, const FACTORY* factory) in FindContext()
310 : fViewMatrix(viewMatrix), fFactory(factory) {} in FindContext()
385 void draw_shadow(const FACTORY& factory, SkCanvas* canvas, ShadowedPath& path, SkColor color, in draw_shadow() argument
387 FindContext<FACTORY> context(&path.viewMatrix(), &factory); in draw_shadow()
421 vertices = tessellations->add(path.path(), factory, path.viewMatrix()); in draw_shadow()
432 vertices = factory.makeVertices(path.path(), path.viewMatrix()); in draw_shadow()
492 AmbientVerticesFactory factory; in DrawShadow() local
493 factory.fOccluderHeight = occluderHeight; in DrawShadow()
494 factory.fAmbientAlpha = ambientAlpha; in DrawShadow()
495 factory.fTransparent = transparent; in DrawShadow()
497 draw_shadow(factory, canvas, shadowedPath, color, cache); in DrawShadow()
502 SpotVerticesFactory factory; in DrawShadow() local
511 factory.fOffset = SkVector::Make(zRatio * (center.fX - devLightPos.fX), in DrawShadow()
513 factory.fOccluderHeight = occluderHeight; in DrawShadow()
514 factory.fDevLightPos = devLightPos; in DrawShadow()
515 factory.fLightRadius = lightRadius; in DrawShadow()
516 factory.fSpotAlpha = spotAlpha; in DrawShadow()
520 factory.fOccluderType = SpotVerticesFactory::OccluderType::kTransparent; in DrawShadow()
522 factory.fOccluderType = SpotVerticesFactory::OccluderType::kOpaque; in DrawShadow()
539 factory.fOccluderType = SpotVerticesFactory::OccluderType::kTransparent; in DrawShadow()
540 } else if (fabsf(factory.fOffset.fX) < umbraInsetX && in DrawShadow()
541 fabsf(factory.fOffset.fY) < umbraInsetY) { in DrawShadow()
542 factory.fOccluderType = in DrawShadow()
544 } else if (factory.fOffset.fX > w - umbraInsetX || in DrawShadow()
545 factory.fOffset.fY > h - umbraInsetY) { in DrawShadow()
547 factory.fOccluderType = SpotVerticesFactory::OccluderType::kTransparent; in DrawShadow()
552 if (factory.fOccluderType == SpotVerticesFactory::OccluderType::kOpaque) { in DrawShadow()
553 factory.fOccluderType = SpotVerticesFactory::OccluderType::kTransparent; in DrawShadow()
555 draw_shadow(factory, canvas, shadowedPath, color, cache); in DrawShadow()