| Index: cc/layers/content_layer.cc
|
| diff --git a/cc/layers/content_layer.cc b/cc/layers/content_layer.cc
|
| index 178211f5339019752f8f990a5b1680392576d5a2..bdec8f7ca1adfefd6c371239b581b117dcf0cb3c 100644
|
| --- a/cc/layers/content_layer.cc
|
| +++ b/cc/layers/content_layer.cc
|
| @@ -160,10 +160,10 @@ skia::RefPtr<SkPicture> ContentLayer::GetPicture() const {
|
| int height = bounds().height();
|
| gfx::RectF opaque;
|
|
|
| - skia::RefPtr<SkPicture> picture = skia::AdoptRef(new SkPicture);
|
| - SkCanvas* canvas = picture->beginRecording(width, height);
|
| + SkPictureRecorder recorder;
|
| + SkCanvas* canvas = recorder.beginRecording(width, height);
|
| client_->PaintContents(canvas, gfx::Rect(width, height), &opaque);
|
| - picture->endRecording();
|
| + skia::RefPtr<SkPicture> picture = skia::AdoptRef(recorder.endRecording());
|
| return picture;
|
| }
|
|
|
|
|