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

Unified Diff: third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h

Issue 2007553002: Retire setGradientSpaceTransform, setPatternSpaceTransform (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fmalita discovers SkMatrix::I() Created 4 years, 7 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/layout/svg/LayoutSVGResourcePaintServer.h
diff --git a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
index 26cd0fa96511c751f55117bdbf96afe69b592951..3b0554880f22f82d510f7035355bdb70f7c8043a 100644
--- a/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
+++ b/third_party/WebKit/Source/core/layout/svg/LayoutSVGResourcePaintServer.h
@@ -24,6 +24,7 @@
#include "platform/graphics/Color.h"
#include "platform/graphics/Gradient.h"
#include "platform/graphics/Pattern.h"
+#include "platform/transforms/AffineTransform.h"
#include "wtf/Allocator.h"
class SkPaint;
@@ -43,8 +44,8 @@ class SVGPaintServer {
STACK_ALLOCATED();
public:
explicit SVGPaintServer(Color);
- explicit SVGPaintServer(PassRefPtr<Gradient>);
- explicit SVGPaintServer(PassRefPtr<Pattern>);
+ SVGPaintServer(PassRefPtr<Gradient>, const AffineTransform&);
+ SVGPaintServer(PassRefPtr<Pattern>, const AffineTransform&);
static SVGPaintServer requestForLayoutObject(const LayoutObject&, const ComputedStyle&, LayoutSVGResourceMode);
static bool existsForLayoutObject(const LayoutObject&, const ComputedStyle&, LayoutSVGResourceMode);
@@ -60,6 +61,7 @@ public:
private:
RefPtr<Gradient> m_gradient;
RefPtr<Pattern> m_pattern;
+ AffineTransform m_transform; // Used for gradient/pattern shaders.
Color m_color;
};

Powered by Google App Engine
This is Rietveld 408576698