Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: sky/engine/wtf/text/StringImpl.cpp

Issue 691493004: Remove callOnMainThread (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sky/engine/wtf/testing/RunAllTests.cpp ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sky/engine/wtf/text/StringImpl.cpp
diff --git a/sky/engine/wtf/text/StringImpl.cpp b/sky/engine/wtf/text/StringImpl.cpp
index 79d878d31f9d85f7636b28663f54d12d41670735..a2179e542ee36c4e6e5e82140a4850d4c578300f 100644
--- a/sky/engine/wtf/text/StringImpl.cpp
+++ b/sky/engine/wtf/text/StringImpl.cpp
@@ -184,7 +184,7 @@ bool operator<(const RefPtr<PerStringStats>& a, const RefPtr<PerStringStats>& b)
return a->m_numberOfAtomicCopies < b->m_numberOfAtomicCopies;
}
-static void printLiveStringStats(void*)
+static void printLiveStringStats()
{
MutexLocker locker(statsMutex());
HashSet<void*>& strings = liveStrings();
@@ -255,7 +255,7 @@ void StringStats::printStats()
double overheadPercent = (double)totalOverhead / (double)totalDataBytes * 100;
dataLogF(" StringImpl overheader: %8u (%5.2f%%)\n", totalOverhead, overheadPercent);
- callOnMainThread(printLiveStringStats, 0);
+ printLiveStringStats();
}
#endif
« no previous file with comments | « sky/engine/wtf/testing/RunAllTests.cpp ('k') | sky/viewer/platform/platform_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698