summaryrefslogtreecommitdiffstats
path: root/ash/display/mirror_window_controller.cc
diff options
context:
space:
mode:
authordavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 20:20:48 +0000
committerdavemoore@chromium.org <davemoore@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-09-20 20:20:48 +0000
commit86c71f70fe9e419c95b48c4b4eaddcd8304483ad (patch)
treeb3bdfc8c55ec529804ab7f079e51d1e4317d2583 /ash/display/mirror_window_controller.cc
parent62678a6ccf992445b275919bef062028c32e65a1 (diff)
downloadchromium_src-86c71f70fe9e419c95b48c4b4eaddcd8304483ad.zip
chromium_src-86c71f70fe9e419c95b48c4b4eaddcd8304483ad.tar.gz
chromium_src-86c71f70fe9e419c95b48c4b4eaddcd8304483ad.tar.bz2
Remove dependency on ui::ScaleFactor from ui/gfx
As part of the work to removed dependencies on ui/base from ui/gfx I have changed the public api to Canvas, ImageSkia, ImageSkiaRep and ImagePNGRep to take float scale values instead of ui::ScaleFactor. The notion of supported scale factors has been broken into 2 parts. ui::SetSupportedScaleFactors remains and calls the new ImageSkia::SetSupportedScales(). The initialization of the supported scale factors has been moved from layout.h into ResourceBundle, and is done explicitly in tests that don't use ResourceBundle. BUG=103304 R=ben@chromium.org, oshima@chromium.org, sky@chromium.org Review URL: https://codereview.chromium.org/24175004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224473 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ash/display/mirror_window_controller.cc')
-rw-r--r--ash/display/mirror_window_controller.cc5
1 files changed, 1 insertions, 4 deletions
diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
index 2de135a..d7cd6f0 100644
--- a/ash/display/mirror_window_controller.cc
+++ b/ash/display/mirror_window_controller.cc
@@ -127,10 +127,8 @@ class CursorWindowDelegate : public aura::WindowDelegate {
// take 2x's image and paint as if it's 1x image.
void SetCursorImage(const gfx::ImageSkia& image,
const gfx::Display& display) {
- device_scale_factor_ =
- ui::GetScaleFactorFromScale(display.device_scale_factor());
const gfx::ImageSkiaRep& image_rep =
- image.GetRepresentation(device_scale_factor_);
+ image.GetRepresentation(display.device_scale_factor());
size_ = image_rep.pixel_size();
cursor_image_ = gfx::ImageSkia::CreateFrom1xBitmap(image_rep.sk_bitmap());
}
@@ -139,7 +137,6 @@ class CursorWindowDelegate : public aura::WindowDelegate {
private:
gfx::ImageSkia cursor_image_;
- ui::ScaleFactor device_scale_factor_;
gfx::Size size_;
DISALLOW_COPY_AND_ASSIGN(CursorWindowDelegate);