OLD | NEW |
1 /* | 1 /* |
2 * Copyright (C) 2012 Google Inc. All rights reserved. | 2 * Copyright (C) 2012 Google Inc. All rights reserved. |
3 * | 3 * |
4 * Redistribution and use in source and binary forms, with or without | 4 * Redistribution and use in source and binary forms, with or without |
5 * modification, are permitted provided that the following conditions | 5 * modification, are permitted provided that the following conditions |
6 * are met: | 6 * are met: |
7 * 1. Redistributions of source code must retain the above copyright | 7 * 1. Redistributions of source code must retain the above copyright |
8 * notice, this list of conditions and the following disclaimer. | 8 * notice, this list of conditions and the following disclaimer. |
9 * 2. Redistributions in binary form must reproduce the above copyright | 9 * 2. Redistributions in binary form must reproduce the above copyright |
10 * notice, this list of conditions and the following disclaimer in the | 10 * notice, this list of conditions and the following disclaimer in the |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 | 210 |
211 // Protect concurrent access to these members: | 211 // Protect concurrent access to these members: |
212 // m_orderedCacheList | 212 // m_orderedCacheList |
213 // m_decoderCacheMap and all CacheEntrys stored in it | 213 // m_decoderCacheMap and all CacheEntrys stored in it |
214 // m_decoderCacheKeyMap | 214 // m_decoderCacheKeyMap |
215 // m_heapLimitInBytes | 215 // m_heapLimitInBytes |
216 // m_heapMemoryUsageInBytes | 216 // m_heapMemoryUsageInBytes |
217 // This mutex also protects calls to underlying skBitmap's | 217 // This mutex also protects calls to underlying skBitmap's |
218 // lockPixels()/unlockPixels() as they are not threadsafe. | 218 // lockPixels()/unlockPixels() as they are not threadsafe. |
219 Mutex m_mutex; | 219 Mutex m_mutex; |
220 | |
221 #if COMPILER(MSVC) | |
222 friend struct ::WTF::OwnedPtrDeleter<CacheEntry>; | |
223 friend struct ::WTF::OwnedPtrDeleter<DecoderCacheEntry>; | |
224 #endif | |
225 }; | 220 }; |
226 | 221 |
227 } // namespace blink | 222 } // namespace blink |
228 | 223 |
229 #endif | 224 #endif |
OLD | NEW |