mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Fix use-after-move in SwapchainVK. (flutter/engine#52933)
Fix lint encountered in https://github.com/flutter/engine/pull/52932.
This commit is contained in:
parent
dff60d8f55
commit
1bf574e4a6
@ -19,7 +19,7 @@ bool AHBSwapchainVK::IsAvailableOnPlatform() {
|
||||
|
||||
AHBSwapchainVK::AHBSwapchainVK(const std::shared_ptr<Context>& context,
|
||||
ANativeWindow* window,
|
||||
vk::UniqueSurfaceKHR surface,
|
||||
const vk::UniqueSurfaceKHR& surface,
|
||||
const ISize& size,
|
||||
bool enable_msaa)
|
||||
: context_(context),
|
||||
|
||||
@ -57,7 +57,7 @@ class AHBSwapchainVK final : public SwapchainVK {
|
||||
|
||||
explicit AHBSwapchainVK(const std::shared_ptr<Context>& context,
|
||||
ANativeWindow* window,
|
||||
vk::UniqueSurfaceKHR surface,
|
||||
const vk::UniqueSurfaceKHR& surface,
|
||||
const ISize& size,
|
||||
bool enable_msaa);
|
||||
};
|
||||
|
||||
@ -67,7 +67,7 @@ std::shared_ptr<SwapchainVK> SwapchainVK::Create(
|
||||
auto ahb_swapchain = std::shared_ptr<AHBSwapchainVK>(new AHBSwapchainVK(
|
||||
context, //
|
||||
window.GetHandle(), //
|
||||
std::move(surface), //
|
||||
surface, //
|
||||
window.GetSize(), //
|
||||
enable_msaa //
|
||||
));
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user