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

Unified Diff: Source/core/svg/graphics/SVGImageForContainer.cpp

Issue 1001703003: Take NativeImageSkia out behind the woodshed. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Switch to skia-style API (return bool instead of SkBitmap) 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
« no previous file with comments | « Source/core/svg/graphics/SVGImageForContainer.h ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/svg/graphics/SVGImageForContainer.cpp
diff --git a/Source/core/svg/graphics/SVGImageForContainer.cpp b/Source/core/svg/graphics/SVGImageForContainer.cpp
index 0e7e57fb3177e7f550ce3693bb84ccd4342db88c..cb4788af7186bbc02dae947a6aabfbed595e7132 100644
--- a/Source/core/svg/graphics/SVGImageForContainer.cpp
+++ b/Source/core/svg/graphics/SVGImageForContainer.cpp
@@ -22,6 +22,7 @@
#include "platform/geometry/FloatRect.h"
#include "platform/geometry/FloatSize.h"
+#include "third_party/skia/include/core/SkBitmap.h"
#include "wtf/PassRefPtr.h"
namespace blink {
@@ -45,9 +46,9 @@ void SVGImageForContainer::drawPattern(GraphicsContext* context, const FloatRect
m_image->drawPatternForContainer(context, m_containerSize, m_zoom, srcRect, scale, phase, op, dstRect, repeatSpacing);
}
-PassRefPtr<NativeImageSkia> SVGImageForContainer::nativeImageForCurrentFrame()
+bool SVGImageForContainer::bitmapForCurrentFrame(SkBitmap* bitmap)
{
- return m_image->nativeImageForCurrentFrame();
+ return m_image->bitmapForCurrentFrame(bitmap);
}
} // namespace blink
« no previous file with comments | « Source/core/svg/graphics/SVGImageForContainer.h ('k') | Source/core/svg/graphics/filters/SVGFEImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698