Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Delete WeakPtrFactory from GPUSurfaceVulkanImpeller #42710

Merged
merged 1 commit into from
Jun 9, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions shell/gpu/gpu_surface_vulkan_impeller.cc
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,7 @@
namespace flutter {

GPUSurfaceVulkanImpeller::GPUSurfaceVulkanImpeller(
std::shared_ptr<impeller::Context> context)
: weak_factory_(this) {
std::shared_ptr<impeller::Context> context) {
if (!context || !context->IsValid()) {
return;
}
Expand Down
1 change: 0 additions & 1 deletion shell/gpu/gpu_surface_vulkan_impeller.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ class GPUSurfaceVulkanImpeller final : public Surface {
std::shared_ptr<impeller::Renderer> impeller_renderer_;
std::shared_ptr<impeller::AiksContext> aiks_context_;
bool is_valid_ = false;
fml::WeakPtrFactory<GPUSurfaceVulkanImpeller> weak_factory_;

// |Surface|
std::unique_ptr<SurfaceFrame> AcquireFrame(const SkISize& size) override;
Expand Down