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

Unified Diff: Source/core/svg/graphics/filters/SVGFEImage.cpp

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Make bitmapForCurrentFrame() return SkBitmap by value. Created 5 years, 9 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: Source/core/svg/graphics/filters/SVGFEImage.cpp
diff --git a/Source/core/svg/graphics/filters/SVGFEImage.cpp b/Source/core/svg/graphics/filters/SVGFEImage.cpp
index 9bc816ec86142b77db43d541a11fa266cd4aa239..943d1fcf4a3f10b6122845a12613ea66a8860713 100644
--- a/Source/core/svg/graphics/filters/SVGFEImage.cpp
+++ b/Source/core/svg/graphics/filters/SVGFEImage.cpp
@@ -217,11 +217,7 @@ PassRefPtr<SkImageFilter> FEImage::createImageFilter(SkiaImageFilterBuilder* bui
m_preserveAspectRatio->transformRect(dstRect, srcRect);
- if (!m_image->nativeImageForCurrentFrame())
- return adoptRef(SkBitmapSource::Create(SkBitmap()));
-
- RefPtr<SkImageFilter> result = adoptRef(SkBitmapSource::Create(m_image->nativeImageForCurrentFrame()->bitmap(), srcRect, dstRect));
- return result.release();
+ return adoptRef(SkBitmapSource::Create(m_image->bitmapForCurrentFrame(), srcRect, dstRect));
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698