-
Notifications
You must be signed in to change notification settings - Fork 6k
Add support for SurfaceTexture based external textures on Android under Impeller/GLES. #44734
Add support for SurfaceTexture based external textures on Android under Impeller/GLES. #44734
Conversation
jonahwilliams
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.
LGTM
| @@ -1,9 +1,10 @@ | |||
|
|
|||
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.
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.
| if (android_context_->RenderingApi() == AndroidRenderingAPI::kOpenGLES) { | ||
| RegisterTexture(std::make_shared<AndroidExternalTextureGL>( | ||
| texture_id, surface_texture, jni_facade_)); | ||
| if (android_context_->GetImpellerContext() != nullptr) { |
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.
I think we'd probably just write it like
| if (android_context_->GetImpellerContext() != nullptr) { | |
| if (android_context_->GetImpellerContext()) { |
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.
|
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat (don't just cc him here, he won't see it! He's on Discord!). If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
…er Impeller/GLES. - Refactor AndroidExternalTextureGL into SurfaceTextureExternalTexture base class. - Add SurfaceTextureExternalTextureGL for legacy GL rendering. - Add SurfaceTextureExternalTextureImpellerGL for Impeller GLES rendering. NOTE: There is still no support for SurfaceTextures under Vulkan rendering.
…ndroid under Impeller/GLES. (flutter/engine#44734)
…132609) flutter/engine@a9da721...7409ce4 2023-08-16 [email protected] Add more tests for CompositionAwareMixin (flutter/engine#44717) 2023-08-15 [email protected] Fix clang_tidy lints (flutter/engine#44740) 2023-08-15 [email protected] Roll Skia from b07a6964a1cf to 9fc1c628456a (5 revisions) (flutter/engine#44737) 2023-08-15 [email protected] Add SLSA L1 badge (flutter/engine#44731) 2023-08-15 [email protected] Add support for SurfaceTexture based external textures on Android under Impeller/GLES. (flutter/engine#44734) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-engine-flutter-autoroll Please CC [email protected],[email protected],[email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://bugs.chromium.org/p/skia/issues/entry?template=Autoroller+Bug Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
…er Impeller/GLES. (flutter#44734) - Refactor AndroidExternalTextureGL into SurfaceTextureExternalTexture base class with two specialized implementations: - Add SurfaceTextureExternalTextureGL for legacy GL rendering. - Add SurfaceTextureExternalTextureImpellerGL for Impeller GLES rendering. NOTE: There is still no support for SurfaceTextures under Vulkan rendering.
NOTE: There is still no support for SurfaceTextures under Vulkan rendering.