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

Unified Diff: components/wallpaper/wallpaper_resizer.h

Issue 2318223003: mash: Migrate wallpaper controllers to ash/common. (Closed)
Patch Set: Cleanup. Created 4 years, 3 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: components/wallpaper/wallpaper_resizer.h
diff --git a/components/wallpaper/wallpaper_resizer.h b/components/wallpaper/wallpaper_resizer.h
index 658f7bb5beae94b994a2d4afbdd6f014604e9465..4e26bde03a5fd167aeecec78fb58dc2a1cc5b729 100644
--- a/components/wallpaper/wallpaper_resizer.h
+++ b/components/wallpaper/wallpaper_resizer.h
@@ -19,7 +19,7 @@
#include "ui/gfx/image/image_skia.h"
namespace base {
-class SequencedWorkerPool;
+class TaskRunner;
}
namespace wallpaper {
@@ -37,16 +37,15 @@ class WALLPAPER_EXPORT WallpaperResizer {
WallpaperResizer(const gfx::ImageSkia& image,
const gfx::Size& target_size,
WallpaperLayout layout,
- base::SequencedWorkerPool* worker_pool_ptr);
+ base::TaskRunner* task_runner);
~WallpaperResizer();
const gfx::ImageSkia& image() const { return image_; }
uint32_t original_image_id() const { return original_image_id_; }
WallpaperLayout layout() const { return layout_; }
- base::SequencedWorkerPool* worker_pool() const { return worker_pool_; }
- // Called on the UI thread to run Resize() on the worker pool and post an
+ // Called on the UI thread to run Resize() on the task runner and post an
// OnResizeFinished() task back to the UI thread on completion.
void StartResize();
@@ -73,7 +72,7 @@ class WALLPAPER_EXPORT WallpaperResizer {
WallpaperLayout layout_;
- base::SequencedWorkerPool* worker_pool_;
+ base::TaskRunner* task_runner_;
base::WeakPtrFactory<WallpaperResizer> weak_ptr_factory_;

Powered by Google App Engine
This is Rietveld 408576698