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

Unified Diff: trunk/src/ui/gfx/image/image_png_rep.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_mac_unittest.mm ('k') | trunk/src/ui/gfx/image/image_png_rep.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_png_rep.h
===================================================================
--- trunk/src/ui/gfx/image/image_png_rep.h (revision 224498)
+++ trunk/src/ui/gfx/image/image_png_rep.h (working copy)
@@ -6,6 +6,7 @@
#define UI_GFX_IMAGE_IMAGE_PNG_REP_H_
#include "base/memory/ref_counted_memory.h"
+#include "ui/base/layout.h"
#include "ui/gfx/gfx_export.h"
namespace gfx {
@@ -14,10 +15,9 @@
// An ImagePNGRep represents a bitmap's png encoded data and the scale factor it
// was intended for.
struct UI_EXPORT ImagePNGRep {
- public:
ImagePNGRep();
ImagePNGRep(const scoped_refptr<base::RefCountedMemory>& data,
- float data_scale);
+ ui::ScaleFactor data_scale_factor);
~ImagePNGRep();
// Width and height of the image, in pixels.
@@ -27,7 +27,7 @@
gfx::Size Size() const;
scoped_refptr<base::RefCountedMemory> raw_data;
- float scale;
+ ui::ScaleFactor scale_factor;
};
} // namespace gfx
« no previous file with comments | « trunk/src/ui/gfx/image/image_mac_unittest.mm ('k') | trunk/src/ui/gfx/image/image_png_rep.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698