Chromium Code Reviews| Index: third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp |
| diff --git a/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp b/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp |
| index 0abb7467e69b191001b139b445fde1949fb28bfb..705a8897ca35a6b46fc1e59d8cb1010748592cd4 100644 |
| --- a/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp |
| +++ b/third_party/WebKit/Source/platform/graphics/compositing/PaintChunksToCcLayer.cpp |
| @@ -182,7 +182,7 @@ static gfx::Rect largeRect(-200000, -200000, 400000, 400000); |
| static void appendDisplayItemToCcDisplayItemList(const DisplayItem& displayItem, |
| cc::DisplayItemList* list) { |
| if (DisplayItem::isDrawingType(displayItem.getType())) { |
| - const PaintRecord* record = |
| + sk_sp<const PaintRecord> record = |
| static_cast<const DrawingDisplayItem&>(displayItem).GetPaintRecord(); |
| if (!record) |
| return; |
| @@ -192,8 +192,7 @@ static void appendDisplayItemToCcDisplayItemList(const DisplayItem& displayItem, |
| // to raster in a different space than that of the visual rects. We'll be |
| // reworking visual rects further for SPv2, so for now we just pass a |
| // visual rect large enough to make sure items raster. |
| - list->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(largeRect, |
| - sk_ref_sp(record)); |
| + list->CreateAndAppendDrawingItem<cc::DrawingDisplayItem>(largeRect, record); |
|
danakj
2017/03/16 20:06:16
move()
|
| } |
| } |