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

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

Issue 2290903002: Change (Pass)RefPtr<SkXxx> into sk_sp<SkXxx>. (Closed)
Patch Set: Self-review. Created 4 years, 4 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 9d8ceb88b10617e0ed40e22265763f4de827aa01..439ea79110737dd9d04dc5efe4140bffb3b5f485 100644
--- a/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
+++ b/third_party/WebKit/Source/platform/graphics/paint/DrawingDisplayItem.cpp
@@ -26,7 +26,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
@@ -64,8 +64,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