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) |