We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8ec8af7 commit 1bd9b8eCopy full SHA for 1bd9b8e
shell/common/shell.cc
@@ -400,13 +400,12 @@ Shell::~Shell() {
400
401
fml::TaskRunner::RunNowOrPostTask(
402
task_runners_.GetRasterTaskRunner(),
403
- fml::MakeCopyable([rasterizer = std::move(rasterizer_),
404
- weak_factory_gpu = std::move(weak_factory_gpu_),
405
- &gpu_latch]() mutable {
406
- rasterizer.reset();
407
- weak_factory_gpu.reset();
408
- gpu_latch.Signal();
409
- }));
+ fml::MakeCopyable(
+ [this, rasterizer = std::move(rasterizer_), &gpu_latch]() mutable {
+ rasterizer.reset();
+ this->weak_factory_gpu_.reset();
+ gpu_latch.Signal();
+ }));
410
gpu_latch.Wait();
411
412
0 commit comments