The implementation of a swapchain that uses hardware buffers presented to a given surface control on Android.
More...
The implementation of a swapchain that uses hardware buffers presented to a given surface control on Android.
- Warning
- This swapchain implementation is not available on all Android versions supported by Flutter. Perform the
IsAvailableOnPlatform check and fallback to KHR swapchains if this type of swapchain cannot be created. The available building blocks for these kinds of swapchains are only available on Android API levels >= 29.
Definition at line 29 of file ahb_swapchain_vk.h.
| void impeller::AHBSwapchainVK::UpdateSurfaceSize |
( |
const ISize & |
size | ) |
|
|
overridevirtual |
Mark the current swapchain configuration as dirty, forcing it to be recreated on the next frame.
Implements impeller::SwapchainVK.
Definition at line 64 of file ahb_swapchain_vk.cc.
64 {
65 if (impl_ && impl_->GetSize() == size) {
66 return;
67 }
70 surface_control_,
71 cb_,
72 size,
73 enable_msaa_
74 );
75 if (!impl || !impl->IsValid()) {
77 return;
78 }
79 impl_ = std::move(impl);
80}
static std::shared_ptr< AHBSwapchainImplVK > Create(const std::weak_ptr< Context > &context, std::weak_ptr< android::SurfaceControl > surface_control, const CreateTransactionCB &cb, const ISize &size, bool enable_msaa)
Create a swapchain of a specific size whose images will be presented to the provided surface control.
it will be possible to load the file into Perfetto s trace viewer use test Running tests that layout and measure text will not yield consistent results across various platforms Enabling this option will make font resolution default to the Ahem test font on all disable asset Prevents usage of any non test fonts unless they were explicitly Loaded via prefetched default font Indicates whether the embedding started a prefetch of the default font manager before creating the engine run In non interactive keep the shell running after the Dart script has completed enable serial On low power devices with low core running concurrent GC tasks on threads can cause them to contend with the UI thread which could potentially lead to jank This option turns off all concurrent GC activities domain network JSON encoded network policy per domain This overrides the DisallowInsecureConnections switch Embedder can specify whether to allow or disallow insecure connections at a domain level old gen heap size
References impeller::AHBSwapchainImplVK::Create(), TRACE_EVENT0, and VALIDATION_LOG.