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

Unified Diff: trunk/src/ui/gfx/image/image_skia_util_ios.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_unittest.cc ('k') | trunk/src/ui/gfx/image/image_skia_util_ios.mm » ('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_util_ios.h
===================================================================
--- trunk/src/ui/gfx/image/image_skia_util_ios.h (revision 224498)
+++ trunk/src/ui/gfx/image/image_skia_util_ios.h (working copy)
@@ -5,6 +5,7 @@
#ifndef UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_
#define UI_GFX_IMAGE_IMAGE_SKIA_UTIL_IOS_H_
+#include "ui/base/layout.h"
#include "ui/gfx/gfx_export.h"
#ifdef __OBJC__
@@ -21,11 +22,13 @@
UI_EXPORT gfx::ImageSkia ImageSkiaFromUIImage(UIImage* image);
// Converts to an ImageSkiaRep of |scale_factor| from UIImage.
-// |scale| is passed explicitly in order to allow this method to be used
-// with a |scale| which is not supported by the platform.
-UI_EXPORT gfx::ImageSkiaRep ImageSkiaRepOfScaleFromUIImage(
+// |scale_factor| is passed explicitly in order to allow this method to be used
+// with a |scale_factor| which is not supported by the platform.
+// (ui::GetScaleFactorFromScale() is restricted to the platform's supported
+// scale factors.)
+UI_EXPORT gfx::ImageSkiaRep ImageSkiaRepOfScaleFactorFromUIImage(
UIImage* image,
- float scale);
+ ui::ScaleFactor scale_factor);
// Converts to UIImage from ImageSkia. The returned UIImage will be at the scale
// of the ImageSkiaRep in |image_skia| which most closely matches the device's
« no previous file with comments | « trunk/src/ui/gfx/image/image_skia_unittest.cc ('k') | trunk/src/ui/gfx/image/image_skia_util_ios.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698