Home | History | Annotate | Download | only in shaders

Lines Matching refs:rec

81 struct BitmapShaderRec : public SkResourceCache::Rec {
98 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextShader) {
99 const BitmapShaderRec& rec = static_cast<const BitmapShaderRec&>(baseRec);
102 *result = rec.fShader;
288 bool SkPictureShader::onAppendStages(const StageRec& rec) const {
290 auto& bitmapShader = *rec.fAlloc->make<sk_sp<SkShader>>();
292 bitmapShader = this->refBitmapShader(rec.fCTM, rec.fLocalM, rec.fDstCS, &compositeLocalMatrix);
294 StageRec localRec = rec;
301 SkShaderBase::Context* SkPictureShader::onMakeContext(const ContextRec& rec, SkArenaAlloc* alloc)
304 sk_sp<SkShader> bitmapShader = this->refBitmapShader(*rec.fMatrix,
305 rec.fLocalMatrix,
306 rec.fDstColorSpace,
312 ContextRec localRec = rec;
336 const SkPictureShader& shader, const ContextRec& rec, sk_sp<SkShader> bitmapShader,
338 : INHERITED(shader, rec)
341 fBitmapShaderContext = as_SB(fBitmapShader)->makeContext(rec, alloc);