Home | History | Annotate | Download | only in core

Lines Matching refs:tmpDst

1076     SkBitmap tmpDst;
1077 tmpDst.setConfig(dstConfig, src->width(), src->height(), 0,
1084 if (!tmpDst.allocPixels(alloc, ctable)) {
1088 if (!tmpDst.readyToDraw()) {
1096 if (tmpDst.getSize() == src->getSize()) {
1097 memcpy(tmpDst.getPixels(), src->getPixels(), src->getSafeSize());
1098 SkPixelRef* pixelRef = tmpDst.pixelRef();
1105 char* dstP = reinterpret_cast<char*>(tmpDst.getPixels());
1107 size_t bytesToCopy = tmpDst.width() * tmpDst.bytesPerPixel();
1108 for (int y = 0; y < tmpDst.height(); y++) {
1111 dstP += tmpDst.rowBytes();
1116 SkASSERT(src->height() == tmpDst.height());
1117 SkASSERT(src->width() == tmpDst.width());
1119 SkPMColor16* SK_RESTRICT dstRow = (SkPMColor16*) tmpDst.getAddr16(0, y);
1129 // TODO: switch the allocation of tmpDst to call sk_calloc_throw
1130 tmpDst.eraseColor(SK_ColorTRANSPARENT);
1132 SkCanvas canvas(tmpDst);
1139 dst->swap(tmpDst);