| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/browser_theme_provider.h" | 5 #include "chrome/browser/browser_theme_provider.h" |
| 6 | 6 |
| 7 #include "app/gfx/skbitmap_operations.h" | 7 #include "app/gfx/skbitmap_operations.h" |
| 8 #include "base/file_util.h" | 8 #include "base/file_util.h" |
| 9 #include "base/gfx/png_decoder.h" | 9 #include "base/gfx/png_decoder.h" |
| 10 #include "base/gfx/png_encoder.h" | 10 #include "base/gfx/png_encoder.h" |
| (...skipping 1231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1242 void BrowserThemeProvider::ClearCaches() { | 1242 void BrowserThemeProvider::ClearCaches() { |
| 1243 FreePlatformCaches(); | 1243 FreePlatformCaches(); |
| 1244 for (ImageCache::iterator i = image_cache_.begin(); | 1244 for (ImageCache::iterator i = image_cache_.begin(); |
| 1245 i != image_cache_.end(); i++) { | 1245 i != image_cache_.end(); i++) { |
| 1246 delete i->second; | 1246 delete i->second; |
| 1247 } | 1247 } |
| 1248 image_cache_.clear(); | 1248 image_cache_.clear(); |
| 1249 images_disk_cache_.clear(); | 1249 images_disk_cache_.clear(); |
| 1250 } | 1250 } |
| 1251 | 1251 |
| 1252 #if defined(TOOLKIT_VIEWS) | 1252 #if defined(OS_WIN) |
| 1253 void BrowserThemeProvider::FreePlatformCaches() { | 1253 void BrowserThemeProvider::FreePlatformCaches() { |
| 1254 // Views (Skia) has no platform image cache to clear. | 1254 // Views (Skia) has no platform image cache to clear. |
| 1255 } | 1255 } |
| 1256 #endif | 1256 #endif |
| OLD | NEW |