mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-19 08:15:31 +00:00
Bug 1646263 - Use a proper name for NS_NewRunnableFunction in APZSampler. r=kats
Differential Revision: https://phabricator.services.mozilla.com/D79943
This commit is contained in:
parent
ca5e547627
commit
2259081765
@ -51,7 +51,7 @@ void APZSampler::SetWebRenderWindowId(const wr::WindowId& aWindowId) {
|
|||||||
if (!sWindowIdMap) {
|
if (!sWindowIdMap) {
|
||||||
sWindowIdMap = new std::unordered_map<uint64_t, RefPtr<APZSampler>>();
|
sWindowIdMap = new std::unordered_map<uint64_t, RefPtr<APZSampler>>();
|
||||||
NS_DispatchToMainThread(NS_NewRunnableFunction(
|
NS_DispatchToMainThread(NS_NewRunnableFunction(
|
||||||
"APZUpdater::ClearOnShutdown", [] { ClearOnShutdown(&sWindowIdMap); }));
|
"APZSampler::ClearOnShutdown", [] { ClearOnShutdown(&sWindowIdMap); }));
|
||||||
}
|
}
|
||||||
(*sWindowIdMap)[wr::AsUint64(aWindowId)] = this;
|
(*sWindowIdMap)[wr::AsUint64(aWindowId)] = this;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user