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

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

Issue 1543593002: Forward fill and stroke styles from 2d canvas to canvas filters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/ReferenceFilterBuilder.h
diff --git a/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h b/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h
index 505476ff9a1c3c1fdfd7a6ca8037d1206a04ff23..0ee9a2262e1d7b55d49da2d455af44c202d4cca5 100644
--- a/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h
+++ b/third_party/WebKit/Source/core/layout/svg/ReferenceFilterBuilder.h
@@ -32,6 +32,7 @@
#define ReferenceFilterBuilder_h
#include "core/fetch/DocumentResourceReference.h"
+#include "third_party/skia/include/core/SkShader.h"
#include "wtf/Allocator.h"
#include "wtf/HashMap.h"
#include "wtf/PassRefPtr.h"
@@ -53,7 +54,7 @@ public:
static void clearDocumentResourceReference(const FilterOperation*);
#endif
- static PassRefPtrWillBeRawPtr<Filter> build(float zoom, Element*, FilterEffect* previousEffect, const ReferenceFilterOperation&);
+ static PassRefPtrWillBeRawPtr<Filter> build(float zoom, Element*, FilterEffect* previousEffect, const ReferenceFilterOperation&, PassRefPtr<SkShader> fillShader = nullptr, PassRefPtr<SkShader> strokeShader = nullptr);
Justin Novosad 2015/12/21 18:10:27 Are we sure SkShader is the right abstraction? I a
f(malita) 2015/12/21 19:01:05 +1 to making PaintFilterEffect SkPaint-based. The
fs 2015/12/21 19:34:20 Yes, SkPaint would mesh slightly better with the (
ajuma 2016/01/11 19:14:08 This now uses SkPaint instead of SkShader.
};
}

Powered by Google App Engine
This is Rietveld 408576698