SkPicture drawing command alteration without regenerating

25 views
Skip to first unread message

pprabhu

unread,
Oct 28, 2021, 2:15:34 PMOct 28
to skia-discuss
Hi , 

Was looking for ways to update/alter SkPicture drawing command without regenerating.

Sample code looks something like below :

SkCanvas *canvas = recorder.beginRecording(....)
canvas->drawRRect(...)
canvas->drawBitmapRect(bitmap,srcRect,destRect,...)
canvas->drawRect(...)
sk_sp<SkPicture> picture = recorder.finishRecordingAsPicture();

In the above code, only the values of srcRect changes quite often.
Is there any way to update this value/use the latest value in the picture object without regenerating it again.

Or  any suggestions how to handle it in a lightweight way. 
 
Thanks,
Pooja
Reply all
Reply to author
Forward
0 new messages