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

Unified Diff: ui/gfx/image/image_skia_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_skia_operations.cc ('k') | ui/gfx/image/image_skia_rep.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gfx/image/image_skia_rep.h
diff --git a/ui/gfx/image/image_skia_rep.h b/ui/gfx/image/image_skia_rep.h
index 6fca4111597725f9bbe6647fa1d27e8d189ef747..66179fb8971704181be97fee784c60b76fb64000 100644
--- a/ui/gfx/image/image_skia_rep.h
+++ b/ui/gfx/image/image_skia_rep.h
@@ -6,7 +6,6 @@
#define UI_GFX_IMAGE_IMAGE_SKIA_REP_H_
#include "third_party/skia/include/core/SkBitmap.h"
-#include "ui/base/layout.h"
#include "ui/gfx/gfx_export.h"
#include "ui/gfx/size.h"
@@ -21,11 +20,11 @@ class UI_EXPORT ImageSkiaRep {
// Creates a bitmap with kARGB_8888_Config config with given |size| in DIP.
// This allocates pixels in the bitmap.
- ImageSkiaRep(const gfx::Size& size, ui::ScaleFactor scale_factor);
+ ImageSkiaRep(const gfx::Size& size, float scale);
- // Creates a bitmap with given scale factor.
+ // Creates a bitmap with given scale.
// Adds ref to |src|.
- ImageSkiaRep(const SkBitmap& src, ui::ScaleFactor scale_factor);
+ ImageSkiaRep(const SkBitmap& src, float scale);
// Returns true if the backing bitmap is null.
bool is_null() const { return bitmap_.isNull(); }
@@ -42,8 +41,7 @@ class UI_EXPORT ImageSkiaRep {
}
// Retrieves the scale that the bitmap will be painted at.
- float GetScale() const;
- ui::ScaleFactor scale_factor() const { return scale_factor_; }
+ float scale() const { return scale_; }
// Returns backing bitmap.
const SkBitmap& sk_bitmap() const { return bitmap_; }
@@ -53,7 +51,7 @@ class UI_EXPORT ImageSkiaRep {
SkBitmap& mutable_sk_bitmap() { return bitmap_; }
SkBitmap bitmap_;
- ui::ScaleFactor scale_factor_;
+ float scale_;
};
} // namespace gfx
« no previous file with comments | « ui/gfx/image/image_skia_operations.cc ('k') | ui/gfx/image/image_skia_rep.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698