From 9beb423e8ce7753a3f572c6374da3a22528eacac Mon Sep 17 00:00:00 2001 From: Dan Field Date: Fri, 9 Jun 2023 14:20:17 -0700 Subject: [PATCH] Delete WeakPtrFactory from GPUSurfaceVulkanImpeller --- shell/gpu/gpu_surface_vulkan_impeller.cc | 3 +-- shell/gpu/gpu_surface_vulkan_impeller.h | 1 - 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/shell/gpu/gpu_surface_vulkan_impeller.cc b/shell/gpu/gpu_surface_vulkan_impeller.cc index b5848cc4c6637..8381fbf26d952 100644 --- a/shell/gpu/gpu_surface_vulkan_impeller.cc +++ b/shell/gpu/gpu_surface_vulkan_impeller.cc @@ -12,8 +12,7 @@ namespace flutter { GPUSurfaceVulkanImpeller::GPUSurfaceVulkanImpeller( - std::shared_ptr context) - : weak_factory_(this) { + std::shared_ptr context) { if (!context || !context->IsValid()) { return; } diff --git a/shell/gpu/gpu_surface_vulkan_impeller.h b/shell/gpu/gpu_surface_vulkan_impeller.h index 7eca3ecd17f43..19ba2b58730f7 100644 --- a/shell/gpu/gpu_surface_vulkan_impeller.h +++ b/shell/gpu/gpu_surface_vulkan_impeller.h @@ -29,7 +29,6 @@ class GPUSurfaceVulkanImpeller final : public Surface { std::shared_ptr impeller_renderer_; std::shared_ptr aiks_context_; bool is_valid_ = false; - fml::WeakPtrFactory weak_factory_; // |Surface| std::unique_ptr AcquireFrame(const SkISize& size) override;