| OLD | NEW |
| 1 /* | 1 /* |
| 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) | 2 Copyright (C) 1998 Lars Knoll (knoll@mpi-hd.mpg.de) |
| 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) | 3 Copyright (C) 2001 Dirk Mueller (mueller@kde.org) |
| 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) | 4 Copyright (C) 2002 Waldo Bastian (bastian@kde.org) |
| 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. | 5 Copyright (C) 2004, 2005, 2006, 2007, 2008 Apple Inc. All rights reserved. |
| 6 | 6 |
| 7 This library is free software; you can redistribute it and/or | 7 This library is free software; you can redistribute it and/or |
| 8 modify it under the terms of the GNU Library General Public | 8 modify it under the terms of the GNU Library General Public |
| 9 License as published by the Free Software Foundation; either | 9 License as published by the Free Software Foundation; either |
| 10 version 2 of the License, or (at your option) any later version. | 10 version 2 of the License, or (at your option) any later version. |
| (...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 65 { | 65 { |
| 66 visitor->trace(m_resource); | 66 visitor->trace(m_resource); |
| 67 visitor->trace(m_previousInLiveResourcesList); | 67 visitor->trace(m_previousInLiveResourcesList); |
| 68 visitor->trace(m_nextInLiveResourcesList); | 68 visitor->trace(m_nextInLiveResourcesList); |
| 69 visitor->trace(m_previousInAllResourcesList); | 69 visitor->trace(m_previousInAllResourcesList); |
| 70 visitor->trace(m_nextInAllResourcesList); | 70 visitor->trace(m_nextInAllResourcesList); |
| 71 } | 71 } |
| 72 | 72 |
| 73 void MemoryCacheEntry::dispose() | 73 void MemoryCacheEntry::dispose() |
| 74 { | 74 { |
| 75 m_resource->removedFromMemoryCache(); | |
| 76 m_resource.clear(); | 75 m_resource.clear(); |
| 77 } | 76 } |
| 78 | 77 |
| 79 DEFINE_TRACE(MemoryCacheLRUList) | 78 DEFINE_TRACE(MemoryCacheLRUList) |
| 80 { | 79 { |
| 81 visitor->trace(m_head); | 80 visitor->trace(m_head); |
| 82 visitor->trace(m_tail); | 81 visitor->trace(m_tail); |
| 83 } | 82 } |
| 84 | 83 |
| 85 inline MemoryCache::MemoryCache() | 84 inline MemoryCache::MemoryCache() |
| (...skipping 695 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 781 printf("(%.1fK, %.1fK, %uA, %dR, %d); ", currentResource->decode
dSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overheadSi
ze()) / 1024.0f, current->m_accessCount, currentResource->hasClientsOrObservers(
), currentResource->isPurgeable()); | 780 printf("(%.1fK, %.1fK, %uA, %dR, %d); ", currentResource->decode
dSize() / 1024.0f, (currentResource->encodedSize() + currentResource->overheadSi
ze()) / 1024.0f, current->m_accessCount, currentResource->hasClientsOrObservers(
), currentResource->isPurgeable()); |
| 782 | 781 |
| 783 current = current->m_previousInAllResourcesList; | 782 current = current->m_previousInAllResourcesList; |
| 784 } | 783 } |
| 785 } | 784 } |
| 786 } | 785 } |
| 787 | 786 |
| 788 #endif // MEMORY_CACHE_STATS | 787 #endif // MEMORY_CACHE_STATS |
| 789 | 788 |
| 790 } // namespace blink | 789 } // namespace blink |
| OLD | NEW |