| Index: ui/compositor/layer.cc
|
| diff --git a/ui/compositor/layer.cc b/ui/compositor/layer.cc
|
| index f88557c2dba89b0aab0af5ead1a227d118bf2b4e..c1347c4e36cc9456d3aa243e22e462505f1fa95a 100644
|
| --- a/ui/compositor/layer.cc
|
| +++ b/ui/compositor/layer.cc
|
| @@ -747,10 +747,10 @@ void Layer::PaintContents(
|
| ContentLayerClient::PaintingControlSetting painting_control) {
|
| TRACE_EVENT1("ui", "Layer::PaintContents", "name", name_);
|
| ClearDamagedRects();
|
| - scoped_ptr<gfx::Canvas> canvas(gfx::Canvas::CreateCanvasWithoutScaling(
|
| - sk_canvas, device_scale_factor_));
|
| - if (delegate_)
|
| - delegate_->OnPaintLayer(PaintContext(canvas.get(), clip));
|
| + if (delegate_) {
|
| + gfx::Canvas canvas(sk_canvas, device_scale_factor_);
|
| + delegate_->OnPaintLayer(PaintContext(&canvas, clip));
|
| + }
|
| }
|
|
|
| void Layer::PaintContentsToDisplayList(
|
|
|