Home | History | Annotate | Download | only in core

Lines Matching defs:pr

170 void SkBitmap::setPixelRef(sk_sp<SkPixelRef> pr, int dx, int dy) {
172 if (pr) {
174 SkASSERT(dx >= 0 && this->width() + dx <= pr->width());
175 SkASSERT(dy >= 0 && this->height() + dy <= pr->height());
179 fPixelRef = kUnknown_SkColorType != this->colorType() ? std::move(pr) : nullptr;
237 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, rowBytes);
238 if (!pr) {
241 this->setPixelRef(std::move(pr), 0, 0);
257 sk_sp<SkPixelRef> pr = (allocFlags & kZeroPixels_AllocFlag) ?
260 if (!pr) {
263 this->setPixelRef(std::move(pr), 0, 0);
292 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithProc(correctedInfo, rb, pixels,
294 if (!pr) {
299 this->setPixelRef(std::move(pr), 0, 0);
344 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, dst->rowBytes());
345 if (!pr) {
349 dst->setPixelRef(std::move(pr), 0, 0);