Lines Matching defs:bitmap
149 static void initBitmap(SkBitmap& bitmap, uint32_t width, uint32_t height) {
150 bitmap.allocPixels(SkImageInfo::MakeA8(width, height));
151 bitmap.eraseColor(0);
166 static void drawPath(const SkPath *path, const SkPaint* paint, SkBitmap& bitmap,
168 initBitmap(bitmap, width, height);
173 SkCanvas canvas(bitmap);
256 // Don't even try to cache a bitmap that's bigger than the cache
282 SkBitmap bitmap;
283 drawPath(path, paint, bitmap, left, top, offset, width, height);
287 generateTexture(entry, &bitmap, texture);
292 void PathCache::generateTexture(const PathDescription& entry, SkBitmap* bitmap,
294 generateTexture(*bitmap, texture);
315 void PathCache::generateTexture(SkBitmap& bitmap, Texture* texture) {
317 texture->upload(bitmap);
343 SkBitmap* bitmap = new SkBitmap();
344 drawPath(&t->path, &t->paint, *bitmap, left, top, offset, width, height);
345 t->setResult(bitmap);
391 // A bitmap is attached to the texture, this means we need to
396 // producing the bitmap, so let's wait
397 SkBitmap* bitmap = task->getResult();
398 if (bitmap) {
399 generateTexture(entry, bitmap, texture, false);