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;