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

Unified Diff: third_party/WebKit/Source/core/svg/graphics/SVGImage.h

Issue 2791043002: Draw recorded content directly into the containing PaintCanvas, when possible. (Closed)
Patch Set: none Created 3 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: third_party/WebKit/Source/core/svg/graphics/SVGImage.h
diff --git a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
index efade97cdcc756d9e43b1f05cd192d78caafb2e6..c2046d3f5ef8e53deb6f5def6c9be8d09f94ca5e 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -150,7 +150,8 @@ class CORE_EXPORT SVGImage final : public Image {
const IntSize& containerSize);
sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& bounds,
const KURL&);
-
+ // Paints the current frame of the SVGImage into the given canvas.
+ void paintCurrentFrame(const FloatRect& bounds, const KURL&, PaintCanvas&);
void drawInternal(PaintCanvas*,
const PaintFlags&,
const FloatRect& fromRect,

Powered by Google App Engine
This is Rietveld 408576698