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

Unified Diff: Source/platform/fonts/mac/FontCacheMac.mm

Issue 1303153005: Introduce WebTaskRunner Patch 3/5 (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add missing #include Created 5 years, 3 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 | « Source/platform/blob/BlobRegistry.cpp ('k') | Source/platform/graphics/DeferredImageDecoderTest.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/fonts/mac/FontCacheMac.mm
diff --git a/Source/platform/fonts/mac/FontCacheMac.mm b/Source/platform/fonts/mac/FontCacheMac.mm
index fae31d6e713ec2db93e883c8ecf0eacded0ef18d..e94805fa3ed2ce4b22f3f533bd0a7a7fc7a34e18 100644
--- a/Source/platform/fonts/mac/FontCacheMac.mm
+++ b/Source/platform/fonts/mac/FontCacheMac.mm
@@ -39,6 +39,7 @@
#include "platform/fonts/SimpleFontData.h"
#include "platform/fonts/mac/FontFamilyMatcherMac.h"
#include "public/platform/Platform.h"
+#include "public/platform/WebTaskRunner.h"
#include "public/platform/WebTraceLocation.h"
#include <wtf/Functional.h>
#include <wtf/MainThread.h>
@@ -56,7 +57,7 @@ namespace blink {
static void invalidateFontCache()
{
if (!isMainThread()) {
- Platform::current()->mainThread()->postTask(FROM_HERE, bind(&invalidateFontCache));
+ Platform::current()->mainThread()->taskRunner()->postTask(FROM_HERE, bind(&invalidateFontCache));
return;
}
FontCache::fontCache()->invalidate();
« no previous file with comments | « Source/platform/blob/BlobRegistry.cpp ('k') | Source/platform/graphics/DeferredImageDecoderTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698