blob: 681ff6a8a427b5eea1f2e542d1308531d935a284 [file] [log] [blame]
This patch removes the directory mtime check for the font cache. This will
allow us to build the font cache on a separate machine and distribute the
cache files as a pre-built package, which will speed up developer build times
for ARM devices by up to 9 minutes. See crbug.com/205424 for more details.
diff --git a/src/fccache.c b/src/fccache.c
index 7abb750..742cb89 100644
--- a/src/fccache.c
+++ b/src/fccache.c
@@ -748,7 +748,14 @@ FcCacheTimeValid (FcConfig *config, FcCache *cache, struct stat *dir_stat)
FcCacheDir (cache), cache->checksum, (int) dir_stat->st_mtime);
#endif
- return cache->checksum == (int) dir_stat->st_mtime && fnano;
+ /*
+ * Always assume the directory mtime is valid. On Chrome OS, we build the
+ * font cache on the builders and distribute them as a pre-built package.
+ * This means that the mtimes on the target systems will not match the mtime
+ * stored in the cache. However, the contents of the cache should still be
+ * valid so just ignore this check.
+ */
+ return FcTrue;
}
static FcBool