Home | History | Annotate | Download | only in shaders

Lines Matching refs:rec

88 struct BitmapShaderRec : public SkResourceCache::Rec {
105 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextShader) {
106 const BitmapShaderRec& rec = static_cast<const BitmapShaderRec&>(baseRec);
109 *result = rec.fShader;
284 bool SkPictureShader::onAppendStages(const StageRec& rec) const {
286 auto& bitmapShader = *rec.fAlloc->make<sk_sp<SkShader>>();
287 bitmapShader = this->refBitmapShader(rec.fCTM, rec.fLocalM, rec.fDstCS);
288 return bitmapShader && as_SB(bitmapShader)->appendStages(rec);
292 SkShaderBase::Context* SkPictureShader::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc)
294 sk_sp<SkShader> bitmapShader(this->refBitmapShader(*rec.fMatrix, rec.fLocalMatrix,
295 rec.fDstColorSpace));
301 alloc->make<PictureShaderContext>(*this, rec, std::move(bitmapShader), alloc);
321 const SkPictureShader& shader, const ContextRec& rec, sk_sp<SkShader> bitmapShader,
323 : INHERITED(shader, rec)
326 fBitmapShaderContext = as_SB(fBitmapShader)->makeContext(rec, alloc);