• Home
  • Raw
  • Download

Lines Matching refs:rec

80 SkShaderBase::Context* SkShaderBase::makeContext(const ContextRec& rec, SkArenaAlloc* alloc) const {  in makeContext()  argument
83 if (rec.fMatrix->hasPerspective() || in makeContext()
85 (rec.fLocalMatrix && rec.fLocalMatrix->hasPerspective()) || in makeContext()
86 !this->computeTotalInverse(*rec.fMatrix, rec.fLocalMatrix, nullptr)) { in makeContext()
90 return this->onMakeContext(rec, alloc); in makeContext()
96 SkShaderBase::Context::Context(const SkShaderBase& shader, const ContextRec& rec) in Context() argument
97 : fShader(shader), fCTM(*rec.fMatrix) in Context()
100 SkASSERT(!rec.fMatrix->hasPerspective()); in Context()
101 SkASSERT(!rec.fLocalMatrix || !rec.fLocalMatrix->hasPerspective()); in Context()
106 SkAssertResult(fShader.computeTotalInverse(*rec.fMatrix, rec.fLocalMatrix, &fTotalInverse)); in Context()
108 fPaintAlpha = rec.fPaint->getAlpha(); in Context()
159 bool SkShaderBase::appendStages(const StageRec& rec) const { in appendStages()
160 return this->onAppendStages(rec); in appendStages()
163 bool SkShaderBase::onAppendStages(const StageRec& rec) const { in onAppendStages()
167 SkTCopyOnFirstWrite<SkPaint> opaquePaint(rec.fPaint); in onAppendStages()
168 if (rec.fPaint.getAlpha() != SK_AlphaOPAQUE) { in onAppendStages()
172 ContextRec cr(*opaquePaint, rec.fCTM, rec.fLocalM, rec.fDstColorType, rec.fDstCS); in onAppendStages()
178 auto cb = rec.fAlloc->make<CallbackCtx>(); in onAppendStages()
179 cb->shader = rec.fDstCS ? SkColorSpaceXformer::Make(sk_ref_sp(rec.fDstCS))->apply(this) in onAppendStages()
181 cb->ctx = as_SB(cb->shader)->makeContext(cr, rec.fAlloc); in onAppendStages()
196 rec.fPipeline->append(SkRasterPipeline::seed_shader); in onAppendStages()
197 rec.fPipeline->append(SkRasterPipeline::callback, cb); in onAppendStages()