| OLD | NEW |
| 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 30 matching lines...) Expand all Loading... |
| 41 #include "platform/fonts/FontDataCache.h" | 41 #include "platform/fonts/FontDataCache.h" |
| 42 #include "platform/fonts/FontDescription.h" | 42 #include "platform/fonts/FontDescription.h" |
| 43 #include "platform/fonts/FontPlatformData.h" | 43 #include "platform/fonts/FontPlatformData.h" |
| 44 #include "platform/fonts/FontSmoothingMode.h" | 44 #include "platform/fonts/FontSmoothingMode.h" |
| 45 #include "platform/fonts/SimpleFontData.h" | 45 #include "platform/fonts/SimpleFontData.h" |
| 46 #include "platform/fonts/TextRenderingMode.h" | 46 #include "platform/fonts/TextRenderingMode.h" |
| 47 #include "platform/fonts/opentype/OpenTypeVerticalData.h" | 47 #include "platform/fonts/opentype/OpenTypeVerticalData.h" |
| 48 #include "platform/fonts/shaping/ShapeCache.h" | 48 #include "platform/fonts/shaping/ShapeCache.h" |
| 49 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h" | 49 #include "platform/instrumentation/tracing/web_memory_allocator_dump.h" |
| 50 #include "platform/instrumentation/tracing/web_process_memory_dump.h" | 50 #include "platform/instrumentation/tracing/web_process_memory_dump.h" |
| 51 #include "platform/wtf/HashMap.h" |
| 52 #include "platform/wtf/ListHashSet.h" |
| 53 #include "platform/wtf/PtrUtil.h" |
| 54 #include "platform/wtf/StdLibExtras.h" |
| 55 #include "platform/wtf/Vector.h" |
| 56 #include "platform/wtf/debug/Alias.h" |
| 57 #include "platform/wtf/text/AtomicStringHash.h" |
| 58 #include "platform/wtf/text/StringHash.h" |
| 51 #include "public/platform/Platform.h" | 59 #include "public/platform/Platform.h" |
| 52 #include "ui/gfx/font_list.h" | 60 #include "ui/gfx/font_list.h" |
| 53 #include "wtf/HashMap.h" | |
| 54 #include "wtf/ListHashSet.h" | |
| 55 #include "wtf/PtrUtil.h" | |
| 56 #include "wtf/StdLibExtras.h" | |
| 57 #include "wtf/Vector.h" | |
| 58 #include "wtf/debug/Alias.h" | |
| 59 #include "wtf/text/AtomicStringHash.h" | |
| 60 #include "wtf/text/StringHash.h" | |
| 61 | 61 |
| 62 using namespace WTF; | 62 using namespace WTF; |
| 63 | 63 |
| 64 namespace blink { | 64 namespace blink { |
| 65 | 65 |
| 66 #if !OS(WIN) && !OS(LINUX) | 66 #if !OS(WIN) && !OS(LINUX) |
| 67 FontCache::FontCache() : m_purgePreventCount(0), m_fontManager(nullptr) {} | 67 FontCache::FontCache() : m_purgePreventCount(0), m_fontManager(nullptr) {} |
| 68 #endif // !OS(WIN) && !OS(LINUX) | 68 #endif // !OS(WIN) && !OS(LINUX) |
| 69 | 69 |
| 70 typedef HashMap<unsigned, | 70 typedef HashMap<unsigned, |
| (...skipping 434 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 505 for (iter = gFallbackListShaperCache->begin(); | 505 for (iter = gFallbackListShaperCache->begin(); |
| 506 iter != gFallbackListShaperCache->end(); ++iter) { | 506 iter != gFallbackListShaperCache->end(); ++iter) { |
| 507 shapeResultCacheSize += iter->value->byteSize(); | 507 shapeResultCacheSize += iter->value->byteSize(); |
| 508 } | 508 } |
| 509 dump->AddScalar("size", "bytes", shapeResultCacheSize); | 509 dump->AddScalar("size", "bytes", shapeResultCacheSize); |
| 510 memoryDump->AddSuballocation(dump->guid(), | 510 memoryDump->AddSuballocation(dump->guid(), |
| 511 WTF::Partitions::kAllocatedObjectPoolName); | 511 WTF::Partitions::kAllocatedObjectPoolName); |
| 512 } | 512 } |
| 513 | 513 |
| 514 } // namespace blink | 514 } // namespace blink |
| OLD | NEW |