Searched refs:cachedPaint (Results 1 – 1 of 1) sorted by relevance
306 const SkPaint* cachedPaint = mPaintMap.valueFor(key); in refPaint() local309 if (cachedPaint == nullptr || *cachedPaint != *paint) { in refPaint()310 cachedPaint = new SkPaint(*paint); in refPaint()311 std::unique_ptr<const SkPaint> copy(cachedPaint); in refPaint()315 mPaintMap.replaceValueFor(key, cachedPaint); in refPaint()316 refBitmapsInShader(cachedPaint->getShader()); in refPaint()319 return cachedPaint; in refPaint()