| Index: ash/display/mirror_window_controller.cc
|
| diff --git a/ash/display/mirror_window_controller.cc b/ash/display/mirror_window_controller.cc
|
| index 1a338fec766960c1be6706bc3841889af1dbe6d0..9148d99646b1956b61e2d00caa4c986a9c6e32e0 100644
|
| --- a/ash/display/mirror_window_controller.cc
|
| +++ b/ash/display/mirror_window_controller.cc
|
| @@ -124,10 +124,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());
|
| }
|
| @@ -136,7 +134,6 @@ class CursorWindowDelegate : public aura::WindowDelegate {
|
|
|
| private:
|
| gfx::ImageSkia cursor_image_;
|
| - ui::ScaleFactor device_scale_factor_;
|
| gfx::Size size_;
|
|
|
| DISALLOW_COPY_AND_ASSIGN(CursorWindowDelegate);
|
|
|