Home | History | Annotate | Download | only in common

Lines Matching full:bitmap

30     static sk_sp<Bitmap> allocateHeapBitmap(int width, int height,
31 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) {
32 sk_sp<Bitmap> bitmap = TestUtils::createBitmap(width, height, colorType);
34 bitmap->getSkBitmap(&skBitmap);
36 return bitmap;
39 static sk_sp<Bitmap> allocateHardwareBitmap(int width, int height,
40 SkColorType colorType, std::function<void(SkBitmap& bitmap)> setup) {
44 sk_sp<Bitmap> heapBitmap(Bitmap::allocateHeapBitmap(&skBitmap, nullptr));
46 return Bitmap::allocateHardwareBitmap(skBitmap);
49 typedef sk_sp<Bitmap> (*BitmapAllocator) (int, int, SkColorType,
50 std::function<void(SkBitmap& bitmap)> setup);