Home | History | Annotate | Download | only in tests

Lines Matching defs:bitmap

29 // Draw a scaled bitmap, then return true if it has been cached.
33 SkBitmap bitmap;
34 bitmap.allocN32Pixels(kBitmapSize, kBitmapSize);
35 bitmap.eraseColor(0xFFFFFFFF);
44 canvas->drawBitmapRect(bitmap,
48 return is_in_scaled_image_cache(bitmap, xScale, yScale);
84 static void make_bitmap(SkBitmap* bitmap, const SkImageInfo& info, SkBitmap::Allocator* allocator) {
86 bitmap->setInfo(info);
87 allocator->allocPixelRef(bitmap, 0);
89 bitmap->allocPixels(info);
259 // Add a bitmap to the cache.
267 // Drop the pixels in the bitmap.
273 // The bitmap is not in the cache since it has been dropped.
281 // We can add the bitmap back to the cache and find it again.