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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.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/ImageLayerChromiumTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp b/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
index ac6c74bc8e6b662d9faf579b9b90e62330a4afb2..ccb34c89aa5a224062c8e66b3479166c11941c1f 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageLayerChromiumTest.cpp
@@ -54,7 +54,7 @@ public:
return m_size;
}
- PassRefPtr<SkImage> imageForCurrentFrame() override
+ sk_sp<SkImage> imageForCurrentFrame() override
{
return m_image;
}
@@ -79,7 +79,7 @@ private:
return;
surface->getCanvas()->clear(SK_ColorTRANSPARENT);
- m_image = fromSkSp(surface->makeImageSnapshot());
+ m_image = surface->makeImageSnapshot();
}
static sk_sp<SkSurface> createSkSurface(IntSize size, bool opaque)
@@ -88,7 +88,7 @@ private:
}
IntSize m_size;
- RefPtr<SkImage> m_image;
+ sk_sp<SkImage> m_image;
};
} // anonymous namespace

Powered by Google App Engine
This is Rietveld 408576698