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

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

Issue 2751433002: [SPv2] Flatten property trees in PaintRecordBuilder into a single display list. (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 2b6fc9d7781f9148982c6a1170c7524f59b49487..9a4ceac83a1f13cce3916086d2729b676fb31544 100644
--- a/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
+++ b/third_party/WebKit/Source/core/svg/graphics/SVGImage.h
@@ -79,6 +79,8 @@ class CORE_EXPORT SVGImage final : public Image {
SVGImageChromeClient& chromeClientForTesting();
sk_sp<SkImage> imageForCurrentFrame() override;
+ static FloatPoint offsetForCurrentFrame(const FloatRect& dstRect,
+ const FloatRect& srcRect);
// Does the SVG image/document contain any animations?
bool hasAnimations() const;
@@ -145,8 +147,7 @@ class CORE_EXPORT SVGImage final : public Image {
const KURL&);
sk_sp<SkImage> imageForCurrentFrameForContainer(const KURL&,
const IntSize& containerSize);
- sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& srcRect,
- const FloatRect& dstRect,
+ sk_sp<PaintRecord> paintRecordForCurrentFrame(const FloatRect& bounds,
const KURL&);
void drawInternal(PaintCanvas*,
« 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