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;
269 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(correctedInfo, rowBytes);
270 if (!pr) {
273 this->setPixelRef(std::move(pr), 0, 0);
289 sk_sp<SkPixelRef> pr = (allocFlags & kZeroPixels_AllocFlag) ?
292 if (!pr) {
295 this->setPixelRef(std::move(pr), 0, 0);
324 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeWithProc(correctedInfo, rb, pixels,
326 if (!pr) {
331 this->setPixelRef(std::move(pr), 0, 0);
376 sk_sp<SkPixelRef> pr = SkMallocPixelRef::MakeAllocate(info, dst->rowBytes());
377 if (!pr) {
381 dst->setPixelRef(std::move(pr), 0, 0);