| Index: ash/display/cursor_window_controller.cc
|
| diff --git a/ash/display/cursor_window_controller.cc b/ash/display/cursor_window_controller.cc
|
| index 11c2bf1c579b2b41e2d18a792f4e8b3574d66fb2..d9badb1d0aacbf11a1a2570cc7c3b1c69990497c 100644
|
| --- a/ash/display/cursor_window_controller.cc
|
| +++ b/ash/display/cursor_window_controller.cc
|
| @@ -16,6 +16,7 @@
|
| #include "ui/base/hit_test.h"
|
| #include "ui/base/resource/resource_bundle.h"
|
| #include "ui/compositor/dip_util.h"
|
| +#include "ui/compositor/paint_context.h"
|
| #include "ui/gfx/canvas.h"
|
| #include "ui/gfx/display.h"
|
| #include "ui/gfx/image/image_skia.h"
|
| @@ -47,8 +48,8 @@ class CursorWindowDelegate : public aura::WindowDelegate {
|
| }
|
| bool CanFocus() override { return false; }
|
| void OnCaptureLost() override {}
|
| - void OnPaint(gfx::Canvas* canvas) override {
|
| - canvas->DrawImageInt(cursor_image_, 0, 0);
|
| + void OnPaint(const ui::PaintContext& context) override {
|
| + context.canvas()->DrawImageInt(cursor_image_, 0, 0);
|
| }
|
| void OnDeviceScaleFactorChanged(float device_scale_factor) override {}
|
| void OnWindowDestroying(aura::Window* window) override {}
|
|
|