Lines Matching refs:pr
169 void SkBitmap::setPixelRef(sk_sp<SkPixelRef> pr, int dx, int dy) {
171 if (pr) {
173 SkASSERT(dx >= 0 && this->width() + dx <= pr->width());
174 SkASSERT(dy >= 0 && this->height() + dy <= pr->height());
178 fPixelRef = kUnknown_SkColorType != this->colorType() ? std::move(pr) : nullptr;
265 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, rowBytes);
266 if (!pr) {
269 this->setPixelRef(std::move(pr), 0, 0);
285 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo,
287 if (!pr) {
290 this->setPixelRef(std::move(pr), 0, 0);
365 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, dst->rowBytes());
366 if (!pr) {
370 dst->setPixelRef(std::move(pr), 0, 0);