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

Unified Diff: ui/gfx/image/image_skia_source.h

Issue 24175004: Remove dependency on ui::ScaleFactor from ui/gfx (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix new usage of scale in FastShowPickler Created 7 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
« no previous file with comments | « ui/gfx/image/image_skia_rep.cc ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_source.h
diff --git a/ui/gfx/image/image_skia_source.h b/ui/gfx/image/image_skia_source.h
index ed38e1c93891235c67ddacb2ea2c4bc3fcfa3109..35be479ee3c55ee47c40bd6bedef10a93dd20042 100644
--- a/ui/gfx/image/image_skia_source.h
+++ b/ui/gfx/image/image_skia_source.h
@@ -5,7 +5,8 @@
#ifndef UI_GFX_IMAGE_IMAGE_SKIA_SOURCE_H_
#define UI_GFX_IMAGE_IMAGE_SKIA_SOURCE_H_
-#include "ui/base/layout.h"
+#include <vector>
+
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -16,11 +17,11 @@ class UI_EXPORT ImageSkiaSource {
public:
virtual ~ImageSkiaSource() {}
- // Returns the ImageSkiaRep for the given |scale_factor|. ImageSkia
- // caches the returned ImageSkiaRep and calls this method only if it
- // doesn't have ImageSkaiRep for given |scale_factor|. There is
- // no need for the implementation to cache the image.
- virtual gfx::ImageSkiaRep GetImageForScale(ui::ScaleFactor scale_factor) = 0;
+ // Returns the ImageSkiaRep for the given |scale|. ImageSkia caches the
+ // returned ImageSkiaRep and calls this method only if it doesn't have
+ // ImageSkiaRep for given |scale|. There is no need for the implementation to
+ // cache the image.
+ virtual gfx::ImageSkiaRep GetImageForScale(float scale) = 0;
};
} // namespace gfx
« no previous file with comments | « ui/gfx/image/image_skia_rep.cc ('k') | ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698