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:
Hiroyuki Ikezoe 2020-06-17 22:38:13 +00:00
parent ca5e547627
commit 2259081765

View File

@ -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;
} }