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

Unified Diff: ui/gfx/image/image_png_rep.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_mac_unittest.mm ('k') | 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: ui/gfx/image/image_png_rep.h
diff --git a/ui/gfx/image/image_png_rep.h b/ui/gfx/image/image_png_rep.h
index 7e5ce5b4e415f4c6553e950707de44128261089d..98e37454b7f37464355ac59e3c7a83c969218a4b 100644
--- a/ui/gfx/image/image_png_rep.h
+++ b/ui/gfx/image/image_png_rep.h
@@ -6,7 +6,6 @@
#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 {
@@ -15,9 +14,10 @@ class Size;
// 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,
- ui::ScaleFactor data_scale_factor);
+ float data_scale);
~ImagePNGRep();
// Width and height of the image, in pixels.
@@ -27,7 +27,7 @@ struct UI_EXPORT ImagePNGRep {
gfx::Size Size() const;
scoped_refptr<base::RefCountedMemory> raw_data;
- ui::ScaleFactor scale_factor;
+ float scale;
};
} // namespace gfx
« no previous file with comments | « ui/gfx/image/image_mac_unittest.mm ('k') | ui/gfx/image/image_png_rep.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698