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

Unified Diff: third_party/WebKit/Source/core/frame/ImageBitmapTest.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/core/frame/ImageBitmapTest.cpp
diff --git a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
index 6919c835615110439bccbdc5d81ed46fba7b08da..20ab0a3a7b04ba68289fd49b86cdd83ee3ee7b78 100644
--- a/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
+++ b/third_party/WebKit/Source/core/frame/ImageBitmapTest.cpp
@@ -54,11 +54,11 @@ protected:
{
sk_sp<SkSurface> surface = SkSurface::MakeRasterN32Premul(10, 10);
surface->getCanvas()->clear(0xFFFFFFFF);
- m_image = fromSkSp(surface->makeImageSnapshot());
+ m_image = surface->makeImageSnapshot();
sk_sp<SkSurface> surface2 = SkSurface::MakeRasterN32Premul(5, 5);
surface2->getCanvas()->clear(0xAAAAAAAA);
- m_image2 = fromSkSp(surface2->makeImageSnapshot());
+ m_image2 = surface2->makeImageSnapshot();
// Save the global memory cache to restore it upon teardown.
m_globalMemoryCache = replaceMemoryCacheForTesting(MemoryCache::create());
@@ -73,7 +73,7 @@ protected:
replaceMemoryCacheForTesting(m_globalMemoryCache.release());
}
- RefPtr<SkImage> m_image, m_image2;
+ sk_sp<SkImage> m_image, m_image2;
Persistent<MemoryCache> m_globalMemoryCache;
};
« no previous file with comments | « third_party/WebKit/Source/core/frame/ImageBitmap.cpp ('k') | third_party/WebKit/Source/core/frame/LocalFrame.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698