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

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..26e21bf8c22628b65e32cf096d462d3a67b7739e 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -148,8 +148,13 @@ class CORE_EXPORT SVGImage final : public Image {
const KURL&);
sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&,
const IntSize& containerSize);
+
+ // Paints the current frame. If a PaintCanvas is passed, paints into that
+ // canvas and returns nullptr.
+ // Otherwise returns a pointer to the new PaintRecord.
sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& bounds,
- const KURL&);
+ const KURL&,
+ PaintCanvas* = nullptr);
void drawInternal(PaintCanvas*,
const PaintFlags&,
« no previous file with comments | « third_party/WebKit/Source/core/paint/SVGShapePainter.cpp ('k') | third_party/WebKit/Source/core/svg/graphics/SVGImage.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698