Lines Matching refs:bmp
136 static SkBitmap bmp;
137 if (bmp.isNull()) {
138 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H);
139 SkDEBUGCODE(bool alloc = ) bmp.allocPixels();
141 SkAutoLockPixels alp(bmp);
142 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
145 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
155 canvas->drawBitmap(bmp, 0, 0, &paint);
309 SkBitmap bmp;
311 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H, rowBytes);
312 if (!bmp.allocPixels()) {
318 SkAutoLockPixels alp(bmp);
319 memset(bmp.getPixels(), DEV_PAD, bmp.getSafeSize());
321 return new SkBitmapDevice(bmp);
453 SkBitmap bmp;
454 REPORTER_ASSERT(reporter, setupBitmap(&bmp, config8888, rect.width(), rect.height(), SkToBool(tightBmp)));
456 canvas.writePixels(bmp, rect.fLeft, rect.fTop, config8888);
458 bmp, rect.fLeft, rect.fTop, config8888));
463 bmp.width(), bmp.height());