Home | History | Annotate | Download | only in gm

Lines Matching full:bitmap

60 static void force_all_opaque(const SkBitmap& bitmap) {
61 SkAutoLockPixels lock(bitmap);
62 for (int y = 0; y < bitmap.height(); y++) {
63 for (int x = 0; x < bitmap.width(); x++) {
64 *bitmap.getAddr32(x, y) |= (SK_A32_MASK << SK_A32_SHIFT);
69 static bool write_bitmap(const SkString& path, const SkBitmap& bitmap) {
71 bitmap.copyTo(&copy, SkBitmap::kARGB_8888_Config);
151 SkBitmap bitmap;
153 bitmap.setConfig(gRec[i].fConfig, size.width(), size.height());
154 bitmap.allocPixels();
155 bitmap.eraseColor(0);
156 SkCanvas canvas(bitmap);
164 bool success = write_bitmap(path, bitmap);
175 compare(bitmap, orig, name);