Home | History | Annotate | Download | only in tests

Lines Matching refs:bitmap

132 void fillBitmap(SkBitmap* bitmap) {
133 SkASSERT(bitmap->lockPixelsAreWritable());
134 SkAutoLockPixels alp(*bitmap);
135 int w = bitmap->width();
136 int h = bitmap->height();
137 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap->getPixels());
140 SkPMColor* pixel = reinterpret_cast<SkPMColor*>(pixels + y * bitmap->rowBytes() + x * bitmap->bytesPerPixel());
166 // checks the bitmap contains correct pixels after the readPixels
167 // if the bitmap was prefilled with pixels it checks that these weren't
170 const SkBitmap& bitmap,
175 SkASSERT(SkBitmap::kARGB_8888_Config == bitmap.config());
176 SkASSERT(!bitmap.isNull());
179 int bw = bitmap.width();
180 int bh = bitmap.height();
187 SkAutoLockPixels alp(bitmap);
188 intptr_t pixels = reinterpret_cast<intptr_t>(bitmap.getPixels());
194 uint32_t pixel = *reinterpret_cast<SkPMColor*>(pixels + by * bitmap.rowBytes() + bx * bitmap.bytesPerPixel());
234 void init_bitmap(SkBitmap* bitmap, const SkIRect& rect, BitmapInit init) {
251 bitmap->setConfig(SkBitmap::kARGB_8888_Config, w, h, rowBytes);
253 bitmap->allocPixels();
331 * that causes the readback of pixels from BGRA canvas to an RGBA bitmap to
351 // if the bitmap has pixels allocated before the readPixels,
376 // failed then our bitmap should still not have pixels
381 // bitmap size