- Notifications
You must be signed in to change notification settings - Fork30k
[Android] wire up Java Transaction to AHB swapchain.#162750
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Changes fromall commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -16,10 +16,15 @@ | ||
| #if FML_OS_ANDROID | ||
| #include "impeller/toolkit/android/native_window.h" | ||
| #include "impeller/toolkit/android/surface_transaction.h" | ||
| #endif // FML_OS_ANDROID | ||
| namespace impeller { | ||
| #if FML_OS_ANDROID | ||
| using CreateTransactionCB = std::function<android::SurfaceTransaction()>; | ||
ContributorAuthor There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others.Learn more. I hate that this uses a callback but I had a bad time looking for some common place to put an interface to be shared between the platform and impeller code anywhere. ideally we'd have something fairly simple like: But I plan to fix this in a follow up. | ||
| #endif // FML_OS_ANDROID | ||
| //------------------------------------------------------------------------------ | ||
| /// @brief A swapchain that adapts to the underlying surface going out of | ||
| /// date. If the caller cannot acquire the next drawable, it is due | ||
| @@ -38,6 +43,7 @@ class SwapchainVK { | ||
| static std::shared_ptr<SwapchainVK> Create( | ||
| const std::shared_ptr<Context>& context, | ||
| ANativeWindow* window, | ||
| const CreateTransactionCB& cb, | ||
| bool enable_msaa = true); | ||
| #endif // FML_OS_ANDROID | ||