-
Notifications
You must be signed in to change notification settings - Fork 6k
[Impeller] Implement ui.Picture.toImage() #35633
Conversation
|
Would like to get some comments, cc @dnfield @chinmaygarde @jonahwilliams |
| const Delegate& GetDelegate() { return delegate_; } | ||
|
|
||
| private: | ||
| const Delegate& delegate_; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
FML_DISALLOW_COPY_AND_ASSIGN(SnapshotController)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
|
|
||
| namespace flutter { | ||
|
|
||
| sk_sp<DlImage> SnapshotControllerImpeller::MakeRasterSnapshot( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This method seems like it should be guarded by the GPU sync switch...
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done.
dnfield
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Overall looks good, would like Chinmay or Jason to get a chance to have a look at it too.
|
Can we autosubmit this, or are there additional reviewers that should take a look? |
I think we can autosubmit it. |
fix flutter/flutter#104718
Add a class
SnapshotControllerfor make snapshot, subclassSnapshotControllerSkiaandSnapshotControllerImpellerto implement the function. In addition, the API ofSnapshotDelegate:: MakeRasterSnapshotwas modified, the parameterdraw_callbackwas replaced bydisplay_listI guess Impeller's implementation doesn't need to generate a raster image, right?
Pre-launch Checklist
writing and running engine tests.
///).