This repository was archived by the owner on Feb 25, 2025. It is now read-only.
Backend-specific EmbedderTestBackingStoreProducers#56638
Merged
auto-submit[bot] merged 3 commits intoflutter:mainfrom Nov 16, 2024
cbracken:refactor-embedder-test-backingstore-producer
Merged
Backend-specific EmbedderTestBackingStoreProducers#56638auto-submit[bot] merged 3 commits intoflutter:mainfrom cbracken:refactor-embedder-test-backingstore-producer
auto-submit[bot] merged 3 commits intoflutter:mainfrom
cbracken:refactor-embedder-test-backingstore-producer
Conversation
|
|
||
| GrMtlTextureInfo skia_texture_info; | ||
| skia_texture_info.fTexture.reset(SkCFSafeRetain(texture_info.texture)); | ||
| GrBackendTexture backend_texture = GrBackendTextures::MakeMtl( |
Contributor
There was a problem hiding this comment.
Nothing to do here, but all these tests/test harness that use Skia types directly like this will need to either be rewritten or deleted next year
Member
Author
There was a problem hiding this comment.
Yup. I suspect there's a non-zero amount of Skia-specific code in the embedder_unittests source too for that matter.
Refactoring all this stuff out into backend-specific classes hopefully makes either of those options easier.
cbracken
commented
Nov 16, 2024
| // Ideally this would be set in the constructor, however we can't do that | ||
| // without introducing different constructors depending on different graphics | ||
| // APIs, which is a bit ugly. | ||
| test_egl_context_ = std::move(context); |
Member
Author
There was a problem hiding this comment.
Turns out introducing different constructors is less ugly.
cbracken
commented
Nov 16, 2024
| #ifdef SHELL_ENABLE_GL | ||
| std::shared_ptr<TestEGLContext> egl_context_ = nullptr; | ||
| #endif | ||
|
|
Member
Author
There was a problem hiding this comment.
Last ifdef of the file, gone.
Extracts backend-specific subclasses of EmbedderTestBackingStoreProducer for OpenGL, Metal, Software, and Vulkan. Issue: flutter/flutter#158998
engine-flutter-autoroll
added a commit
to engine-flutter-autoroll/flutter
that referenced
this pull request
Nov 16, 2024
github-merge-queue bot
pushed a commit
to flutter/flutter
that referenced
this pull request
Nov 16, 2024
flutter/engine@f238321...98c3b7f 2024-11-16 chris@bracken.jp Backend-specific EmbedderTestBackingStoreProducers (flutter/engine#56638) 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 jimgraham@google.com,zra@google.com 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://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
8 tasks
auto-submit bot
pushed a commit
that referenced
this pull request
Nov 19, 2024
Eliminates an unused ifdef'ed include in embedder_test_backingstore_producer.h and adds it to embedder_test_context_gl.h, where it's needed. The need for this include was eliminated in #56638. No test changes since the patch introduces no semantic changes. Issue: flutter/flutter#158998 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
nick9822
pushed a commit
to nick9822/flutter
that referenced
this pull request
Dec 18, 2024
) Extracts backend-specific subclasses of EmbedderTestBackingStoreProducer for OpenGL, Metal, Software, and Vulkan. Issue: flutter#158998 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
nick9822
pushed a commit
to nick9822/flutter
that referenced
this pull request
Dec 18, 2024
Eliminates an unused ifdef'ed include in embedder_test_backingstore_producer.h and adds it to embedder_test_context_gl.h, where it's needed. The need for this include was eliminated in flutter/engine#56638. No test changes since the patch introduces no semantic changes. Issue: flutter#158998 [C++, Objective-C, Java style guides]: https://github.com/flutter/engine/blob/main/CONTRIBUTING.md#style
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Extracts backend-specific subclasses of EmbedderTestBackingStoreProducer for OpenGL, Metal, Software, and Vulkan.
Issue: flutter/flutter#158998
Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.