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

[Impeller] Support YUV external textures on iOS #36685

Merged

Conversation

ColdPaleLight
Copy link
Member

@ColdPaleLight ColdPaleLight commented Oct 10, 2022

fix flutter/flutter#113688

Test result
2UMlNL5Lm8

Pre-launch Checklist

  • I read the Contributor Guide and followed the process outlined there for submitting PRs.
  • I read the Tree Hygiene wiki page, which explains my responsibilities.
  • I read and followed the Flutter Style Guide and the C++, Objective-C, Java style guides.
  • I listed at least one issue that this PR fixes in the description above.
  • I added new tests to check the change I am making or feature I am adding, or Hixie said the PR is test-exempt. See testing the engine for instructions on
    writing and running engine tests.
  • I updated/added relevant documentation (doc comments with ///).
  • I signed the CLA.
  • All existing and new tests are passing.

If you need help, consider asking for advice on the #hackers-new channel on Discord.

@ColdPaleLight ColdPaleLight marked this pull request as draft October 10, 2022 13:29
@ColdPaleLight ColdPaleLight marked this pull request as ready for review October 10, 2022 13:30
@ColdPaleLight ColdPaleLight self-assigned this Oct 10, 2022
@ColdPaleLight ColdPaleLight requested review from chinmaygarde and bdero and removed request for chinmaygarde October 20, 2022 07:46
@ColdPaleLight
Copy link
Member Author

@chinmaygarde @bdero The PR is ready for review :)

Copy link
Member

@chinmaygarde chinmaygarde left a comment

Choose a reason for hiding this comment

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

Apologies for the delay in this review. Everything looks great except the concern that the OpenGL ES implementation doesn't use ES 2.0 Core features. I haven't explored how to reconcile this limitation ATM. If we can't do this ATM, I'd rather leave the implementation out of this attempt and we can revisit it later during an ES backend polishing effort. Thanks!

type = GL_UNSIGNED_BYTE;
break;
case PixelFormat::kR8G8UNormInt:
internal_format = GL_RG;
Copy link
Member

Choose a reason for hiding this comment

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

I don't believe these are part of OpenGL ES 2.0 are they?

Copy link
Member Author

Choose a reason for hiding this comment

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

Good catch! I removed these and add a TODO comment with issue id in the test.

@ColdPaleLight ColdPaleLight added the autosubmit Merge PR when tree becomes green via auto submit App label Nov 3, 2022
@auto-submit auto-submit bot merged commit fb7cde6 into flutter:main Nov 3, 2022
engine-flutter-autoroll added a commit to engine-flutter-autoroll/flutter that referenced this pull request Nov 4, 2022
auto-submit bot pushed a commit to flutter/flutter that referenced this pull request Nov 4, 2022
…114651)

* 3593f34b9 Roll Skia from bddba32af857 to 8e48bb8ea52e (5 revisions) (flutter/engine#37297)

* fb7cde697 [Impeller] Support YUV external textures on iOS (flutter/engine#36685)
schwa423 pushed a commit to schwa423/engine that referenced this pull request Nov 16, 2022
* Tweak Texture::Paint API

* Support external textures for iOS

* format code

* Tweak code

* format

* Clean code

* [Impeller] Support YUV external textures on iOS

* Fix test

* Clean code

* Fix compile error

* Add todo link

* Clean code
shogohida pushed a commit to shogohida/flutter that referenced this pull request Dec 7, 2022
…lutter#114651)

* 3593f34b9 Roll Skia from bddba32af857 to 8e48bb8ea52e (5 revisions) (flutter/engine#37297)

* fb7cde697 [Impeller] Support YUV external textures on iOS (flutter/engine#36685)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
autosubmit Merge PR when tree becomes green via auto submit App e: impeller embedder Related to the embedder API platform-android platform-ios platform-macos
Projects
No open projects
Archived in project
Development

Successfully merging this pull request may close these issues.

[Impeller] Support YUV external textures on iOS.
2 participants