Lines Matching refs:rec

57     bool onAppendStages(const SkStageRec& rec, bool shaderIsOpaque) const override {
58 rec.fPipeline->append(SkRasterPipeline::gauss_a_to_rgba);
380 const CachedTessellationsRec& rec = static_cast<const CachedTessellationsRec&>(baseRec);
382 rec.find(*findContext->fFactory, *findContext->fViewMatrix, &findContext->fTranslate);
388 findContext->fTessellationsOnFailure = rec.refTessellations();
494 auto rec = new CachedTessellationsRec(*key, std::move(tessellations));
496 SkResourceCache::Add(rec);
582 uint32_t flags, const SkMatrix& ctm, SkDrawShadowRec* rec) {
594 rec->fZPlaneParams = zPlaneParams;
595 rec->fLightPos = { pt.fX, pt.fY, lightPos.fZ };
596 rec->fLightRadius = lightRadius;
597 rec->fAmbientColor = ambientColor;
598 rec->fSpotColor = spotColor;
599 rec->fFlags = flags;
616 SkDrawShadowRec rec;
617 rec.isLimitElevation = isLimitElevation;
619 flags, canvas->getTotalMatrix(), &rec)) {
623 canvas->private_draw_shadow_rec(path, rec);
629 SkDrawShadowRec rec;
631 flags, ctm, &rec)) {
635 SkDrawShadowMetrics::GetLocalBounds(path, rec, ctm, bounds);
642 static bool validate_rec(const SkDrawShadowRec& rec) {
643 return rec.fLightPos.isFinite() && rec.fZPlaneParams.isFinite() &&
644 SkScalarIsFinite(rec.fLightRadius);
647 void SkBaseDevice::drawShadow(const SkPath& path, const SkDrawShadowRec& rec) {
662 if (!validate_rec(rec)) {
671 bool tiltZPlane = tilted(rec.fZPlaneParams);
672 bool transparent = SkToBool(rec.fFlags & SkShadowFlags::kTransparentOccluder_ShadowFlag);
673 bool directional = SkToBool(rec.fFlags & kDirectionalLight_ShadowFlag);
676 SkPoint3 zPlaneParams = rec.fZPlaneParams;
677 SkPoint3 devLightPos = rec.fLightPos;
681 float lightRadius = rec.fLightRadius;
683 if (SkColorGetA(rec.fAmbientColor) > 0) {
694 SkColorFilters::Blend(rec.fAmbientColor,
713 if (!draw_shadow(factory, drawVertsProc, shadowedPath, rec.fAmbientColor)) {
752 paint.setColor(rec.fAmbientColor);
763 if (SkColorGetA(rec.fSpotColor) > 0) {
770 directional, rec.isLimitElevation);
776 SkColorFilters::Blend(rec.fSpotColor,
794 if (SkToBool(rec.fFlags & kDirectionalLight_ShadowFlag)) {
803 rec.isLimitElevation);
828 SkColor color = rec.fSpotColor;
845 if (!draw_shadow(factory, drawVertsProc, shadowedPath, color, rec.isLimitElevation)) {
851 &shadowMatrix, &radius, rec.isLimitElevation)) {
857 paint.setColor(rec.fSpotColor);