Home | History | Annotate | Download | only in json

Lines Matching defs:bitmap

227 static SkBitmap* convert_colortype(SkBitmap* bitmap, SkColorType colorType) {
228 if (bitmap->colorType() == colorType ) {
229 return bitmap;
232 if (bitmap->copyTo(dst, colorType)) {
233 delete bitmap;
238 return bitmap;
244 SkDebugf("invalid bitmap\n");
251 SkBitmap* bitmap = new SkBitmap();
252 SkImageDecoder::Result result = decoder->decode(&stream, bitmap,
261 bitmap = convert_colortype(bitmap, ct);
264 return bitmap;
272 SkBitmap* bitmap = load_bitmap(jsonImage);
273 if (bitmap == nullptr) {
276 SkImage* result = SkImage::NewFromBitmap(*bitmap);
277 delete bitmap;
921 SkBitmap* bitmap = load_bitmap(command[SKJSONCANVAS_ATTRIBUTE_BITMAP]);
922 if (bitmap == nullptr) {
947 target->drawBitmapRect(*bitmap, src, dst, paintPtr, constraint);
950 target->drawBitmapRect(*bitmap, dst, paintPtr, constraint);
952 free(bitmap);