diff options
Diffstat (limited to 'cc/test/fake_content_layer_client.cc')
| -rw-r--r-- | cc/test/fake_content_layer_client.cc | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/cc/test/fake_content_layer_client.cc b/cc/test/fake_content_layer_client.cc index 88c4f80..49cf38f 100644 --- a/cc/test/fake_content_layer_client.cc +++ b/cc/test/fake_content_layer_client.cc @@ -67,8 +67,7 @@ FakeContentLayerClient::PaintContentsToDisplayList( skia::SharePtr(recorder.beginRecording(gfx::RectFToSkRect(draw_rect))); canvas->drawRect(gfx::RectFToSkRect(draw_rect), paint); display_list->CreateAndAppendItem<DrawingDisplayItem>( - ToEnclosingRect(draw_rect), - skia::AdoptRef(recorder.endRecordingAsPicture())); + ToEnclosingRect(draw_rect), recorder.finishRecordingAsPicture()); } for (ImageVector::const_iterator it = draw_images_.begin(); @@ -82,7 +81,7 @@ FakeContentLayerClient::PaintContentsToDisplayList( canvas->drawImage(it->image.get(), it->point.x(), it->point.y(), &it->paint); display_list->CreateAndAppendItem<DrawingDisplayItem>( - PaintableRegion(), skia::AdoptRef(recorder.endRecordingAsPicture())); + PaintableRegion(), recorder.finishRecordingAsPicture()); if (!it->transform.IsIdentity()) { display_list->CreateAndAppendItem<EndTransformDisplayItem>( PaintableRegion()); @@ -99,7 +98,7 @@ FakeContentLayerClient::PaintContentsToDisplayList( skia::SharePtr(recorder.beginRecording(gfx::RectToSkRect(draw_rect))); canvas->drawIRect(gfx::RectToSkIRect(draw_rect), paint); display_list->CreateAndAppendItem<DrawingDisplayItem>( - draw_rect, skia::AdoptRef(recorder.endRecordingAsPicture())); + draw_rect, recorder.finishRecordingAsPicture()); draw_rect.Inset(1, 1); } } |
