Chromium Code Reviews| Index: src/core/SkResourceCache.cpp |
| diff --git a/src/core/SkResourceCache.cpp b/src/core/SkResourceCache.cpp |
| index fa3cb9dbe0bca11e3ab983f6f6a949bcaa2a1d28..e465132288ad09e862f1aafae473ed090db35893 100644 |
| --- a/src/core/SkResourceCache.cpp |
| +++ b/src/core/SkResourceCache.cpp |
| @@ -544,15 +544,6 @@ void SkResourceCache::checkMessages() { |
| SK_DECLARE_STATIC_MUTEX(gMutex); |
| static SkResourceCache* gResourceCache = nullptr; |
| -static void cleanup_gResourceCache() { |
| - // We'll clean this up in our own tests, but disable for clients. |
| - // Chrome seems to have funky multi-process things going on in unit tests that |
| - // makes this unsafe to delete when the main process atexit()s. |
| - // SkLazyPtr does the same sort of thing. |
|
mtklein
2016/04/28 20:46:00
Ah, good. SkLazyPtr was deleted but this comment
|
| -#if SK_DEVELOPER |
| - delete gResourceCache; |
| -#endif |
| -} |
| /** Must hold gMutex when calling. */ |
| static SkResourceCache* get_cache() { |
| @@ -564,7 +555,6 @@ static SkResourceCache* get_cache() { |
| #else |
| gResourceCache = new SkResourceCache(SK_DEFAULT_IMAGE_CACHE_LIMIT); |
| #endif |
| - atexit(cleanup_gResourceCache); |
| } |
| return gResourceCache; |
| } |