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

Side by Side Diff: components/wallpaper/wallpaper_color_cache.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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_WALLPAPER_WALLPAPER_COLOR_CACHE_H_
6 #define COMPONENTS_WALLPAPER_WALLPAPER_COLOR_CACHE_H_
7
8 #include <stdint.h>
9
10 #include "base/macros.h"
11 #include "components/wallpaper/wallpaper_export.h"
12 #include "third_party/skia/include/core/SkColor.h"
13
14 namespace wallpaper {
15
16 class WALLPAPER_EXPORT WallpaperColorCache {
17 public:
18 virtual ~WallpaperColorCache() {}
19
20 virtual bool GetColor(uint32_t image_id, SkColor* color) const = 0;
21 virtual void SetColor(uint32_t image_id, SkColor color) = 0;
22
23 protected:
24 WallpaperColorCache() {}
25
26 private:
27 DISALLOW_COPY_AND_ASSIGN(WallpaperColorCache);
28 };
29
30 } // namespace wallpaper
31
32 #endif // COMPONENTS_WALLPAPER_WALLPAPER_COLOR_CACHE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698