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

Commit

Permalink
[Impeller] Use a weak pointer factory in GPUSurfaceGLImpeller that su…
Browse files Browse the repository at this point in the history
…pports the raster thread merger (#47081)

This is required for platform view scenarios that merge the raster task runner into the platform thread.
  • Loading branch information
jason-simmons authored and harryterkelsen committed Oct 23, 2023
1 parent 8d0ce71 commit 947ab1f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion shell/gpu/gpu_surface_gl_impeller.h
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ class GPUSurfaceGLImpeller final : public Surface {
std::shared_ptr<impeller::Renderer> impeller_renderer_;
std::shared_ptr<impeller::AiksContext> aiks_context_;
bool is_valid_ = false;
fml::WeakPtrFactory<GPUSurfaceGLImpeller> weak_factory_;
fml::TaskRunnerAffineWeakPtrFactory<GPUSurfaceGLImpeller> weak_factory_;

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

0 comments on commit 947ab1f

Please sign in to comment.