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

Unified Diff: components/image_fetcher/image_fetcher_delegate.h

Issue 1974013002: Replace SkBitmap with gfx::Image in the ImageFetcher API. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix more iOS build errors. Created 4 years, 7 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/image_fetcher/image_fetcher_delegate.h
diff --git a/components/image_fetcher/image_fetcher_delegate.h b/components/image_fetcher/image_fetcher_delegate.h
index 0256516ef968ea025e37861d04eb6fe2c9512159..d216f136c24117f8de64baddc389b4bb136d6dbf 100644
--- a/components/image_fetcher/image_fetcher_delegate.h
+++ b/components/image_fetcher/image_fetcher_delegate.h
@@ -8,7 +8,10 @@
#include "base/macros.h"
class GURL;
-class SkBitmap;
+
+namespace gfx {
+class Image;
+}
namespace image_fetcher {
@@ -19,7 +22,7 @@ class ImageFetcherDelegate {
// Called when an image was fetched. |url| represents the website for which
// the image was fetched. |bitmap| stores image data owned by the caller, and
// can be nullptr.
- virtual void OnImageFetched(const GURL& url, const SkBitmap* bitmap) = 0;
+ virtual void OnImageFetched(const GURL& url, const gfx::Image& image) = 0;
protected:
virtual ~ImageFetcherDelegate() {}

Powered by Google App Engine
This is Rietveld 408576698