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

Unified Diff: third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.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/gpu/WebGLImageConversion.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
index dd201db7ec2f7a9db99914a50233c31bbbe4735c..edb3cabd2fb6866346ab411cee176efdbd58021d 100644
--- a/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
+++ b/third_party/WebKit/Source/platform/graphics/gpu/WebGLImageConversion.cpp
@@ -2132,7 +2132,7 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha, b
if (!m_image)
return;
- RefPtr<SkImage> skiaImage = m_image->imageForCurrentFrame();
+ sk_sp<SkImage> skiaImage = m_image->imageForCurrentFrame();
SkImageInfo info = skiaImage
? SkImageInfo::MakeN32Premul(m_image->width(), m_image->height())
: SkImageInfo::MakeUnknown();
@@ -2158,7 +2158,7 @@ void WebGLImageConversion::ImageExtractor::extractImage(bool premultiplyAlpha, b
// only immutable/fully decoded frames make it through. We could potentially relax this
// and allow SkImage::NewFromBitmap to make a copy.
ASSERT(bitmap.isImmutable());
- skiaImage = fromSkSp(SkImage::MakeFromBitmap(bitmap));
+ skiaImage = SkImage::MakeFromBitmap(bitmap);
info = bitmap.info();
if (hasAlpha && premultiplyAlpha)

Powered by Google App Engine
This is Rietveld 408576698