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

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: Update comment to be more specific 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
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/test/test_user_wallpaper_delegate.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..7b37232759cb527004933b568c779f9a976efb99 100644
--- a/ash/desktop_background/user_wallpaper_delegate.h
+++ b/ash/desktop_background/user_wallpaper_delegate.h
@@ -31,8 +31,13 @@ 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 the display's native
+ // resolution changes to a larger resolution (e.g. when hooked up a large
+ // external display) and we need to load a larger resolution wallpaper for the
+ // large display. All the previous small resolution wallpaper cache should be
+ // cleared.
+ virtual void UpdateWallpaper(bool clear_cache) = 0;
// Initialize wallpaper.
virtual void InitializeWallpaper() = 0;
« no previous file with comments | « ash/desktop_background/desktop_background_controller.cc ('k') | ash/test/test_user_wallpaper_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698