mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
Delete WeakPtrFactory from GPUSurfaceVulkanImpeller (flutter/engine#42710)
Should fix https://github.com/flutter/flutter/issues/128618. This is unused - if it were used we'd have to be careful about deleting the object on the same thread it's created on.
This commit is contained in:
parent
db34cccf92
commit
d33b2d4288
@ -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;
|
||||
}
|
||||
|
||||
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user