Home | History | Annotate | Download | only in core

Lines Matching refs:rec

65 struct BitmapShaderRec : public SkResourceCache::Rec {
82 static bool Visitor(const SkResourceCache::Rec& baseRec, void* contextShader) {
83 const BitmapShaderRec& rec = static_cast<const BitmapShaderRec&>(baseRec);
86 result->reset(SkRef(rec.fShader.get()));
244 SkShader::Context* SkPictureShader::onCreateContext(const ContextRec& rec, void* storage) const {
245 SkAutoTUnref<SkShader> bitmapShader(this->refBitmapShader(*rec.fMatrix, rec.fLocalMatrix));
249 return PictureShaderContext::Create(storage, *this, rec, bitmapShader);
255 const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader) {
256 PictureShaderContext* ctx = new (storage) PictureShaderContext(shader, rec, bitmapShader);
265 const SkPictureShader& shader, const ContextRec& rec, SkShader* bitmapShader)
266 : INHERITED(shader, rec)
269 fBitmapShaderContextStorage = sk_malloc_throw(bitmapShader->contextSize(rec));
270 fBitmapShaderContext = bitmapShader->createContext(rec, fBitmapShaderContextStorage);