-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Ensure that the raster thread has an EGL context before submitting the command buffer in ImageEncodingImpeller #175102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Warning Gemini encountered an error creating the review. You can try again by commenting |
| // task runner was assigned to a new thread and no previous rendering | ||
| // task has run on that thread. | ||
| if (!(snapshot_delegate && snapshot_delegate->MakeRenderContextCurrent())) { | ||
| encode_task(fml::Status(fml::StatusCode::kFailedPrecondition, |
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.
Shouldn't there be an early return in this case?
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.
Added the return. Also fixed handling of a case where ConvertDlImageToSkImage is being called on the IO thread and the snapshot delegate is not applicable.
…e command buffer in ImageEncodingImpeller Fixes flutter#171946
The Metal backend can support image enconding without a surface and does not require MakeRenderContextCurrent.
7072fc3 to
60bcdb5
Compare
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…e command buffer in ImageEncodingImpeller (flutter#175102) Fixes flutter#171946
…mitting the command buffer in ImageEncodingImpeller (flutter/flutter#175102)
…e command buffer in ImageEncodingImpeller (flutter#175102) Fixes flutter#171946
…e command buffer in ImageEncodingImpeller (flutter#175102) Fixes flutter#171946
Fixes #171946