Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(536)

Unified Diff: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Rebasing... Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
index 06587565929ae14f0a1197e5f2eefeb5f8becacd..b8e2a0c0d111c7631154ce33869e8e4c253887e9 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
@@ -23,7 +23,7 @@ void DrawingDisplayItem::replay(GraphicsContext& context) const
void DrawingDisplayItem::appendToWebDisplayItemList(const IntRect& visualRect, WebDisplayItemList* list) const
{
if (m_picture)
- list->appendDrawingItem(visualRect, toSkSp(m_picture));
+ list->appendDrawingItem(visualRect, m_picture);
}
bool DrawingDisplayItem::drawsContent() const
@@ -60,8 +60,8 @@ static bool picturesEqual(const SkPicture* picture1, const SkPicture* picture2)
if (picture1Serialized.bytesWritten() != picture2Serialized.bytesWritten())
return false;
- RefPtr<SkData> data1 = adoptRef(picture1Serialized.copyToData());
- RefPtr<SkData> data2 = adoptRef(picture2Serialized.copyToData());
+ sk_sp<SkData> data1(picture1Serialized.copyToData());
+ sk_sp<SkData> data2(picture2Serialized.copyToData());
return data1->equals(data2.get());
}

Powered by Google App Engine
This is Rietveld 408576698