Home | History | Annotate | Download | only in gradients

Lines Matching defs:bitmap

612  *  over and over, we'd like to return exactly the same "bitmap" if possible,
613 * allowing the client to utilize a cache of our bitmap (e.g. with a GPU).
618 void SkGradientShaderBase::getGradientTableBitmap(SkBitmap* bitmap) const {
646 // each cache cost 1K of RAM, since each bitmap will be 1x256 at 32bpp
655 if (!gCache->find(storage.get(), size, bitmap)) {
658 bitmap->setInfo(SkImageInfo::MakeN32Premul(kCache32Count, 1));
659 bitmap->setPixelRef(cache->getCache32PixelRef());
661 gCache->add(storage.get(), size, *bitmap);
1083 SkBitmap bitmap;
1084 shader.getGradientTableBitmap(&bitmap);
1087 desc.fWidth = bitmap.width();
1089 desc.fRowHeight = bitmap.height();
1091 desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info());
1100 fRow = fAtlas->lockRow(bitmap);
1106 SkAutoTUnref<GrTexture> texture(GrRefCachedBitmapTexture(ctx, bitmap, &params));