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

Side by Side Diff: components/wallpaper/wallpaper_resizer.h

Issue 2772313004: [ash-md] WIP Added wallpaper color caching. (Closed)
Patch Set: "Working'ish" prototype Created 3 years, 8 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ 5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_
6 #define COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ 6 #define COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
11 #include "base/memory/ref_counted.h" 11 #include "base/memory/ref_counted.h"
12 #include "base/memory/weak_ptr.h" 12 #include "base/memory/weak_ptr.h"
13 #include "base/observer_list.h" 13 #include "base/observer_list.h"
14 #include "components/wallpaper/wallpaper_export.h"
14 #include "components/wallpaper/wallpaper_layout.h" 15 #include "components/wallpaper/wallpaper_layout.h"
15 #include "components/wallpaper/wallpaper_resizer_observer.h" 16 #include "components/wallpaper/wallpaper_resizer_observer.h"
16 #include "skia/ext/image_operations.h" 17 #include "skia/ext/image_operations.h"
17 #include "third_party/skia/include/core/SkBitmap.h" 18 #include "third_party/skia/include/core/SkBitmap.h"
18 #include "ui/gfx/geometry/rect.h" 19 #include "ui/gfx/geometry/rect.h"
19 #include "ui/gfx/geometry/size.h" 20 #include "ui/gfx/geometry/size.h"
20 #include "ui/gfx/image/image_skia.h" 21 #include "ui/gfx/image/image_skia.h"
21 22
22 namespace base { 23 namespace base {
23 class TaskRunner; 24 class TaskRunner;
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 scoped_refptr<base::TaskRunner> task_runner_; 77 scoped_refptr<base::TaskRunner> task_runner_;
77 78
78 base::WeakPtrFactory<WallpaperResizer> weak_ptr_factory_; 79 base::WeakPtrFactory<WallpaperResizer> weak_ptr_factory_;
79 80
80 DISALLOW_COPY_AND_ASSIGN(WallpaperResizer); 81 DISALLOW_COPY_AND_ASSIGN(WallpaperResizer);
81 }; 82 };
82 83
83 } // namespace wallpaper 84 } // namespace wallpaper
84 85
85 #endif // COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_ 86 #endif // COMPONENTS_WALLPAPER_WALLPAPER_RESIZER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698