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_; |