Index: ui/views/button_drag_utils.cc |
diff --git a/ui/views/button_drag_utils.cc b/ui/views/button_drag_utils.cc |
index 0e7b39821250270fdbf514cd0ece43f210a0673e..a84fa62f8ffc50565422f5dfddec5cb8389bd2d3 100644 |
--- a/ui/views/button_drag_utils.cc |
+++ b/ui/views/button_drag_utils.cc |
@@ -8,7 +8,7 @@ |
#include "ui/base/dragdrop/drag_utils.h" |
#include "ui/base/dragdrop/os_exchange_data.h" |
#include "ui/base/resource/resource_bundle.h" |
-#include "ui/compositor/paint_context.h" |
+#include "ui/compositor/canvas_painter.h" |
#include "ui/gfx/canvas.h" |
#include "ui/gfx/geometry/point.h" |
#include "ui/gfx/geometry/vector2d.h" |
@@ -76,7 +76,7 @@ void SetDragImage(const GURL& url, |
// Render the image. |
scoped_ptr<gfx::Canvas> canvas( |
views::GetCanvasForDragImage(widget, prefsize)); |
- button.Paint(ui::PaintContext(canvas.get())); |
+ button.Paint(ui::CanvasPainter(canvas.get(), 1.f).context()); |
drag_utils::SetDragImageOnDataObject(*canvas, press_point, data); |
} |