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

Unified Diff: trunk/src/ui/gfx/image/image_png_rep.cc

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_png_rep.h ('k') | trunk/src/ui/gfx/image/image_skia.h » ('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.cc
===================================================================
--- trunk/src/ui/gfx/image/image_png_rep.cc (revision 224498)
+++ trunk/src/ui/gfx/image/image_png_rep.cc (working copy)
@@ -4,7 +4,6 @@
#include "ui/gfx/image/image_png_rep.h"
-#include "base/logging.h"
#include "third_party/skia/include/core/SkBitmap.h"
#include "ui/gfx/codec/png_codec.h"
#include "ui/gfx/size.h"
@@ -13,13 +12,13 @@
ImagePNGRep::ImagePNGRep()
: raw_data(NULL),
- scale(1.0) {
+ scale_factor(ui::SCALE_FACTOR_NONE) {
}
ImagePNGRep::ImagePNGRep(const scoped_refptr<base::RefCountedMemory>& data,
- float data_scale)
+ ui::ScaleFactor data_scale_factor)
: raw_data(data),
- scale(data_scale) {
+ scale_factor(data_scale_factor) {
}
ImagePNGRep::~ImagePNGRep() {
« no previous file with comments | « trunk/src/ui/gfx/image/image_png_rep.h ('k') | trunk/src/ui/gfx/image/image_skia.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698