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

Side by Side Diff: Source/platform/fonts/FontCache.cpp

Issue 1192223002: Optimize Complex Text Shaping and Caching (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Change CachingWordShaperTest as suggested Created 5 years, 5 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/FontFallbackList.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Inc. All rights reserved.
3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com> 3 * Copyright (C) 2007 Nicholas Shanks <webkit@nickshanks.com>
4 * 4 *
5 * Redistribution and use in source and binary forms, with or without 5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions 6 * modification, are permitted provided that the following conditions
7 * are met: 7 * are met:
8 * 8 *
9 * 1. Redistributions of source code must retain the above copyright 9 * 1. Redistributions of source code must retain the above copyright
10 * notice, this list of conditions and the following disclaimer. 10 * notice, this list of conditions and the following disclaimer.
(...skipping 20 matching lines...) Expand all
31 #include "platform/fonts/FontCache.h" 31 #include "platform/fonts/FontCache.h"
32 32
33 #include "platform/FontFamilyNames.h" 33 #include "platform/FontFamilyNames.h"
34 34
35 #include "platform/RuntimeEnabledFeatures.h" 35 #include "platform/RuntimeEnabledFeatures.h"
36 #include "platform/fonts/AlternateFontFamily.h" 36 #include "platform/fonts/AlternateFontFamily.h"
37 #include "platform/fonts/FontCacheClient.h" 37 #include "platform/fonts/FontCacheClient.h"
38 #include "platform/fonts/FontCacheKey.h" 38 #include "platform/fonts/FontCacheKey.h"
39 #include "platform/fonts/FontDataCache.h" 39 #include "platform/fonts/FontDataCache.h"
40 #include "platform/fonts/FontDescription.h" 40 #include "platform/fonts/FontDescription.h"
41 #include "platform/fonts/FontFallbackList.h"
42 #include "platform/fonts/FontPlatformData.h" 41 #include "platform/fonts/FontPlatformData.h"
43 #include "platform/fonts/FontSmoothingMode.h" 42 #include "platform/fonts/FontSmoothingMode.h"
43 #include "platform/fonts/SimpleFontData.h"
44 #include "platform/fonts/TextRenderingMode.h" 44 #include "platform/fonts/TextRenderingMode.h"
45 #include "platform/fonts/opentype/OpenTypeVerticalData.h" 45 #include "platform/fonts/opentype/OpenTypeVerticalData.h"
46 #include "wtf/HashMap.h" 46 #include "wtf/HashMap.h"
47 #include "wtf/ListHashSet.h" 47 #include "wtf/ListHashSet.h"
48 #include "wtf/StdLibExtras.h" 48 #include "wtf/StdLibExtras.h"
49 #include "wtf/Vector.h" 49 #include "wtf/Vector.h"
50 #include "wtf/text/AtomicStringHash.h" 50 #include "wtf/text/AtomicStringHash.h"
51 #include "wtf/text/StringHash.h" 51 #include "wtf/text/StringHash.h"
52 52
53 using namespace WTF; 53 using namespace WTF;
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after
281 clients.append(*it); 281 clients.append(*it);
282 282
283 ASSERT(numClients == clients.size()); 283 ASSERT(numClients == clients.size());
284 for (size_t i = 0; i < numClients; ++i) 284 for (size_t i = 0; i < numClients; ++i)
285 clients[i]->fontCacheInvalidated(); 285 clients[i]->fontCacheInvalidated();
286 286
287 purge(ForcePurge); 287 purge(ForcePurge);
288 } 288 }
289 289
290 } // namespace blink 290 } // namespace blink
OLDNEW
« no previous file with comments | « Source/platform/fonts/Font.cpp ('k') | Source/platform/fonts/FontFallbackList.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698