Lines Matching refs:bitmap
121 * Write the raw encoded bitmap data to a file.
123 static bool write_image_to_file(const void* buffer, size_t size, SkBitmap* bitmap) {
136 // Put in a dummy bitmap.
137 return SkImageDecoder::DecodeStream(&memStream, bitmap, kUnknown_SkColorType,
280 SkBitmap* bitmap = NULL;
286 FLAGS_validate || FLAGS_writeWholeImage ? &bitmap : NULL);
288 if (!success || ((FLAGS_validate || FLAGS_writeWholeImage) && bitmap == NULL)) {
290 SkDELETE(bitmap);
320 SkDELETE(bitmap);
325 if (success && (bitmap->width() != referenceBitmap->width())) {
327 referenceBitmap->width(), bitmap->width());
328 SkDELETE(bitmap);
332 if (success && (bitmap->height() != referenceBitmap->height())) {
334 referenceBitmap->height(), bitmap->height());
335 SkDELETE(bitmap);
340 for (int y = 0; success && y < bitmap->height(); y++) {
341 for (int x = 0; success && x < bitmap->width(); x++) {
343 *bitmap->getAddr32(x, y));
352 *bitmap->getAddr32(x, y));
353 SkDELETE(bitmap);
369 sk_tools::force_all_opaque(*bitmap);
377 sk_tools::ImageDigest imageDigest(*bitmap);
381 success &= sk_tools::write_bitmap_to_disk(*bitmap, *mismatchPath, NULL,
387 success &= sk_tools::write_bitmap_to_disk(*bitmap, *writePath, NULL, outputFilename);
390 SkDELETE(bitmap);