Home | History | Annotate | Download | only in tests

Lines Matching refs:bmp

110     static SkBitmap bmp;
111 if (bmp.isNull()) {
112 bmp.setConfig(SkBitmap::kARGB_8888_Config, DEV_W, DEV_H);
113 SkDEBUGCODE(bool alloc =) bmp.allocPixels();
115 SkAutoLockPixels alp(bmp);
116 intptr_t pixels = reinterpret_cast<intptr_t>(bmp.getPixels());
119 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bmp.rowBytes() + x * bmp.bytesPerPixel());
129 canvas->drawBitmap(bmp, 0, 0, &paint);
362 SkBitmap bmp;
363 init_bitmap(&bmp, srcRect, bmi);
367 bool startsWithPixels = !bmp.isNull();
369 fillBitmap(&bmp);
373 canvas.readPixels(&bmp, srcRect.fLeft,
386 checkRead(reporter, bmp, srcRect.fLeft, srcRect.fTop,
391 REPORTER_ASSERT(reporter, bmp.isNull());