Lines Matching defs:bitmap
575 * over and over, we'd like to return exactly the same "bitmap" if possible,
576 * allowing the client to utilize a cache of our bitmap (e.g. with a GPU).
581 void SkGradientShaderBase::getGradientTableBitmap(SkBitmap* bitmap) const {
610 // each cache cost 1K of RAM, since each bitmap will be 1x256 at 32bpp
619 if (!gCache->find(storage.get(), size, bitmap)) {
622 bitmap->setInfo(SkImageInfo::MakeN32Premul(kCache32Count, 1));
623 bitmap->setPixelRef(cache->getCache32PixelRef());
625 gCache->add(storage.get(), size, *bitmap);
1049 SkBitmap bitmap;
1050 shader.getGradientTableBitmap(&bitmap);
1053 desc.fWidth = bitmap.width();
1055 desc.fRowHeight = bitmap.height();
1057 desc.fConfig = SkImageInfo2GrPixelConfig(bitmap.info());
1066 fRow = fAtlas->lockRow(bitmap);
1073 GrTexture* texture = GrLockAndRefCachedBitmapTexture(ctx, bitmap, ¶ms);