Home | History | Annotate | Download | only in tools

Lines Matching refs:bitmap

103             SkBitmap bitmap;
104 sk_tools::setup_bitmap(&bitmap, width, height);
105 canvas = SkNEW_ARGS(SkCanvas, (bitmap));
213 SkBitmap bitmap;
215 sk_tools::setup_bitmap(&bitmap, size.width(), size.height());
217 canvas->readPixels(&bitmap, 0, 0);
218 sk_tools::force_all_opaque(bitmap);
222 return SkImageEncoder::EncodeFile(path.c_str(), bitmap, SkImageEncoder::kPNG_Type, 100);
514 SkBitmap bitmap;
518 setup_bitmap(&bitmap, fTileWidth, fTileHeight);
527 if (fCanvas->readPixels(&bitmap, 0, 0)) {
528 bitmapCopySubset(bitmap, *out, SkScalarFloorToInt(fTileRects[i].left()),
597 SkBitmap bitmap;
600 setup_bitmap(&bitmap, SkScalarFloorToInt(fRects[0].width()), SkScalarFloorToInt(fRects[0].height()));
612 if (fCanvas->readPixels(&bitmap, 0, 0)) {
614 bitmapCopySubset(bitmap, fBitmap, SkScalarFloorToInt(fRects[i].left()),
631 void setBitmap(SkBitmap* bitmap) {
632 fBitmap = bitmap;