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

Side by Side Diff: third_party/WebKit/Source/platform/fonts/FontCache.h

Issue 2700123003: DO NOT COMMIT: Results of running old (current) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved. 2 * Copyright (C) 2006, 2008 Apple Computer, Inc. All rights reserved.
3 * Copyright (C) 2007-2008 Torch Mobile, Inc. 3 * Copyright (C) 2007-2008 Torch Mobile, Inc.
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 12 matching lines...) Expand all
23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; 23 * (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND 24 * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 25 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 26 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28 */ 28 */
29 29
30 #ifndef FontCache_h 30 #ifndef FontCache_h
31 #define FontCache_h 31 #define FontCache_h
32 32
33 #include <limits.h>
34 #include <memory>
33 #include "platform/PlatformExport.h" 35 #include "platform/PlatformExport.h"
34 #include "platform/fonts/FallbackListCompositeKey.h" 36 #include "platform/fonts/FallbackListCompositeKey.h"
35 #include "platform/fonts/FontCacheKey.h" 37 #include "platform/fonts/FontCacheKey.h"
36 #include "platform/fonts/FontFaceCreationParams.h" 38 #include "platform/fonts/FontFaceCreationParams.h"
37 #include "platform/fonts/FontFallbackPriority.h" 39 #include "platform/fonts/FontFallbackPriority.h"
38 #include "third_party/skia/include/core/SkRefCnt.h" 40 #include "third_party/skia/include/core/SkRefCnt.h"
39 #include "wtf/Allocator.h" 41 #include "wtf/Allocator.h"
40 #include "wtf/Forward.h" 42 #include "wtf/Forward.h"
41 #include "wtf/HashMap.h" 43 #include "wtf/HashMap.h"
42 #include "wtf/PassRefPtr.h" 44 #include "wtf/PassRefPtr.h"
43 #include "wtf/text/CString.h" 45 #include "wtf/text/CString.h"
44 #include "wtf/text/Unicode.h" 46 #include "wtf/text/Unicode.h"
45 #include "wtf/text/WTFString.h" 47 #include "wtf/text/WTFString.h"
46 #include <limits.h>
47 #include <memory>
48 48
49 #include "SkFontMgr.h" 49 #include "SkFontMgr.h"
50 50
51 class SkString; 51 class SkString;
52 class SkTypeface; 52 class SkTypeface;
53 53
54 namespace base { 54 namespace base {
55 namespace trace_event { 55 namespace trace_event {
56 class ProcessMemoryDump; 56 class ProcessMemoryDump;
57 } 57 }
(...skipping 222 matching lines...) Expand 10 before | Expand all | Expand 10 after
280 public: 280 public:
281 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); } 281 FontCachePurgePreventer() { FontCache::fontCache()->disablePurging(); }
282 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); } 282 ~FontCachePurgePreventer() { FontCache::fontCache()->enablePurging(); }
283 }; 283 };
284 284
285 AtomicString toAtomicString(const SkString&); 285 AtomicString toAtomicString(const SkString&);
286 286
287 } // namespace blink 287 } // namespace blink
288 288
289 #endif 289 #endif
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698