Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@johnmccutchan
Copy link
Contributor

  • 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.

Copy link
Contributor

@jonahwilliams jonahwilliams left a 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 @@

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change

Copy link
Contributor Author

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) {
Copy link
Contributor

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

Suggested change
if (android_context_->GetImpellerContext() != nullptr) {
if (android_context_->GetImpellerContext()) {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@flutter-dashboard
Copy link

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.
@johnmccutchan johnmccutchan merged commit 010aedb into flutter:main Aug 15, 2023
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Aug 16, 2023
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Aug 16, 2023
…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
gaaclarke pushed a commit to gaaclarke/engine that referenced this pull request Aug 30, 2023
…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.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants