Index: third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
diff --git a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
index da8a4ae19bcff1c00e71db6409ae4c80bb12a62b..5c21c9cb9907fa19735ba90f657fcb3cdc993eaa 100644 |
--- a/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
+++ b/third_party/WebKit/Source/platform/graphics/ContentLayerDelegate.cpp |
@@ -57,8 +57,8 @@ static void paintArtifactToWebDisplayItemList(WebDisplayItemList* list, const Pa |
// separate layers and send those to the compositor, instead of sending |
// one big flat SkPicture. |
SkRect skBounds = SkRect::MakeXYWH(bounds.x(), bounds.y(), bounds.width(), bounds.height()); |
- RefPtr<SkPicture> picture = paintArtifactToSkPicture(artifact, skBounds); |
- list->appendDrawingItem(WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()), picture.get()); |
+ list->appendDrawingItem(WebRect(bounds.x(), bounds.y(), bounds.width(), bounds.height()), |
+ paintArtifactToSkPicture(artifact, skBounds)); |
return; |
} |
artifact.appendToWebDisplayItemList(list); |