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

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

Issue 24262008: Revert 224473 "Remove dependency on ui::ScaleFactor from ui/gfx" (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 | « trunk/src/ui/gfx/image/image_skia_rep.cc ('k') | trunk/src/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: trunk/src/ui/gfx/image/image_skia_source.h
===================================================================
--- trunk/src/ui/gfx/image/image_skia_source.h (revision 224498)
+++ trunk/src/ui/gfx/image/image_skia_source.h (working copy)
@@ -5,8 +5,7 @@
#ifndef UI_GFX_IMAGE_IMAGE_SKIA_SOURCE_H_
#define UI_GFX_IMAGE_IMAGE_SKIA_SOURCE_H_
-#include <vector>
-
+#include "ui/base/layout.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -17,11 +16,11 @@
public:
virtual ~ImageSkiaSource() {}
- // 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;
+ // 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;
};
} // namespace gfx
« no previous file with comments | « trunk/src/ui/gfx/image/image_skia_rep.cc ('k') | trunk/src/ui/gfx/image/image_skia_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698