Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1052)

Unified Diff: ash/desktop_background/user_wallpaper_delegate.h

Issue 190993003: Invalidate all wallpaper cache if display configuration changed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: win compile Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ash/desktop_background/user_wallpaper_delegate.h
diff --git a/ash/desktop_background/user_wallpaper_delegate.h b/ash/desktop_background/user_wallpaper_delegate.h
index e1e7f70e52b464e0e0309ad22cfed4380c2dbca0..faeefa47107e095197563c2ac32ff70d082e12a7 100644
--- a/ash/desktop_background/user_wallpaper_delegate.h
+++ b/ash/desktop_background/user_wallpaper_delegate.h
@@ -31,8 +31,11 @@ class ASH_EXPORT UserWallpaperDelegate {
virtual bool ShouldShowInitialAnimation() = 0;
// Updates current wallpaper. It may switch the size of wallpaper based on the
- // current display's resolution.
- virtual void UpdateWallpaper() = 0;
+ // current display's resolution. If |clear_cache| is true, all wallpaper
+ // cache should be cleared. This is required when screen size changes and we
+ // need to load a different resolution wallpaper. All the previous wallpaper
oshima 2014/03/13 20:13:39 we need to clear the cache only if one of displays
bshe 2014/03/13 22:16:47 Sorry. The comment is not misleading. UpdateWallpe
+ // cache should be cleared.
+ virtual void UpdateWallpaper(bool clear_cache) = 0;
// Initialize wallpaper.
virtual void InitializeWallpaper() = 0;

Powered by Google App Engine
This is Rietveld 408576698