SkPicture有多强大?

时间:2011-10-17 23:44:52

标签: 2d skia

在Skia中,如果我将某些内容录制到SkPicture中,是否可以保留所有必要的内存?即。

picture_canvas = picture.beginRecording(width, height);
picture_canvas->drawBitmap(*some_bitmap, 0, 0);
delete some_bitmap;
picture.endRecording();
some_canvas.drawPicture(picture); // will this crash since I deleted some_bitmap?

是否有任何情况我可以删除导致drawPicture()崩溃的内容,或者它是否始终保证可以正常工作?

0 个答案:

没有答案